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

Not eligible for integrity checks since it's neither CORS-enabled nor same-origin #191

Open
tgoelles opened this issue Dec 5, 2022 · 0 comments

Comments

@tgoelles
Copy link

tgoelles commented Dec 5, 2022

When develop localy and use "hugo server" (version 0.107) to serve the website I don't get the icons and the following erros:

"http://localhost:1313/js/script.min.ab3836b70bc45170e8ff6dd572ee5e8e761ac8376daf9ceb40f760dfb6f2cce49672517da770a0049959f5fc93337e13.js" is not eligible for integrity checks since it's neither CORS-enabled nor same-origin. [127.0.0.1:1313](http://127.0.0.1:1313/)
"http://localhost:1313/js/script.min.ab3836b70bc45170e8ff6dd572ee5e8e761ac8376daf9ceb40f760dfb6f2cce49672517da770a0049959f5fc93337e13.js" is not eligible for integrity checks since it's neither CORS-enabled nor same-origin. [127.0.0.1:1313](http://127.0.0.1:1313/)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:1313/plugins/themify-icons/fonts/themify.woff?-fvbane. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

downloadable font: download failed (font-family: "themify" style:normal weight:400 stretch:100 src index:1): bad URI or cross-site access not allowed source: http://localhost:1313/plugins/themify-icons/fonts/themify.woff?-fvbane
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:1313/plugins/themify-icons/fonts/themify.ttf?-fvbane. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

downloadable font: download failed (font-family: "themify" style:normal weight:400 stretch:100 src index:2): bad URI or cross-site access not allowed source: http://localhost:1313/plugins/themify-icons/fonts/themify.ttf?-fvbane

I tried to turn the integrity tests off like here: https://stackoverflow.com/questions/65040931/hugo-failed-to-find-a-valid-digest-in-the-integrity-attribute-for-resource

But it did not work and I guess thats bad anyway.

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