assist icon indicating copy to clipboard operation
assist copied to clipboard

Enable CORS please 😇(subresource integrity)

Open marsrobertson opened this issue 5 years ago • 0 comments

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.

marsrobertson avatar May 10 '19 20:05 marsrobertson