Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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