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

Enable CORS please 😇(subresource integrity) #165

Open
marsrobertson opened this issue May 10, 2019 · 0 comments
Open

Enable CORS please 😇(subresource integrity) #165

marsrobertson opened this issue May 10, 2019 · 0 comments

Comments

@marsrobertson
Copy link

https://www.srihash.org/

Could not use the website to generate the integrity hash.

So used the command-line:

openssl dgst -sha384 -binary web/lib/assist.min.js | openssl base64 -A

In my HTML code:

<script src="https://assist.blocknative.com/0-6-2/assist.min.js" integrity="sha384-OaY+tUq8VJBFiypwNwV2uHPzxry0UNtd5n18dI7kzTY3RcdRfrSZDACJ167FMmai"></script>

But doesn't work:

Subresource Integrity: The resource 'https://assist.blocknative.com/0-6-2/assist.min.js' has an integrity attribute, but the resource requires the request to be CORS enabled to check the integrity, and it is not. The resource has been blocked because the integrity cannot be enforced.

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

No branches or pull requests

1 participant