Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Script tags with crossorigin="anonymous" set are blocked in Firefox. #12579

Description

@nanek

Issue

Script tags with crossorigin="anonymous" set are blocked in Firefox with this extension.

Example

Example: visiting http://www.spanishdict.com in Firefox with https-everywhere enabled breaks the site as javascript assets hosted on fastly.net are blocked.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://n1.global.ssl.fastly.net/dist/desktop-min-e629278b3482f77bd3dffc90ab326ad9.js. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘(null)’).

Additional information

CORS is configured properly with fastly.net for these resources. If I remove crossorigin="anonymous" from the script tag then the javascript scripts are not be blocked and work correctly. However, using crossorigin="anonymous" is valid and is required to enable error tracking, as described in https://errorception.com/docs/cors

Questions

If a javascript script tag has crossorigin="anonymous" can this extension avoid re-writing to HTTPS? This is likely a common configuration and breaks sites.

Can we whitelist www.spanishdict.com from this extension as this site has only partially implemented HTTPS?

Will whitelisting www.spanishdict.com prevent the javascript assets hosted on fastly.net from being converted to HTTPS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions