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

Subresource Integrity warning for scripts with data-uri #455

Open
exyi opened this issue Nov 4, 2021 · 0 comments · May be fixed by #493
Open

Subresource Integrity warning for scripts with data-uri #455

exyi opened this issue Nov 4, 2021 · 0 comments · May be fixed by #493

Comments

@exyi
Copy link

exyi commented Nov 4, 2021

I get this warning: "Subresource Integrity (SRI) not implemented, and external scripts are loaded over HTTP or use protocol-relative URLs via src="//...", even though the only script on my page is:

<script src="data:text/javascript;base64,YWxlcnQoMSkK" type=text/javascript></script>

This is the website I tested it on: https://observatory.mozilla.org/analyze/exyi.cz

I don't want to stop using the base64 inline scripts - it allows them to have defer attribute and provides less opportunities for exploitation JSON encoded data in the script by injecting </script> in a string

@exyi exyi linked a pull request Jan 25, 2023 that will close this issue
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 a pull request may close this issue.

1 participant