Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRI: don't complain about data URIs #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

exyi
Copy link

@exyi exyi commented Jan 25, 2023

Resolves #455 (also created by me, a year or so ago)

In short, <script src="data:..."> is pretty much equivalent to an inline script, except that it can be async, defer or ES module.
This PR whitelists data URI scheme as trusted, as Observatory currently considers it a script with insecure scheme, giving significant penalties for it.

The CI will fail, because it won't find Python 3.6, otherwise the tests should passed when I tried it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subresource Integrity warning for scripts with data-uri
1 participant