antelle / argon2-browser

Argon2 library compiled for browser runtime
https://antelle.net/argon2-browser
MIT License
367 stars 79 forks source link

Chrome browser is refusing to execute the script. #9

Closed volkovasystems closed 6 years ago

volkovasystems commented 6 years ago

I'm encountering this error log because attribute "type" in the code is not populated with correct MIME type.

Refused to execute script from 'http://localhost:3000/public/lib/argon2-browser/docs/dist/argon2-asm.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

antelle commented 6 years ago

Hi, You need to tune your CSP to fix this. (and indeed fix the mime-type, maybe this will be enough)