themefisher / meghna-hugo

Meghna Hugo is a responsive, minimalist, lightweight, and fast loading one-page business theme built with HTML5/CSS3, Hugo, JavaScript, and JQuery.
https://gethugothemes.com/products/meghna/?utm_source=meghna_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
441 stars 1.23k forks source link

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

Open tgoelles opened 1 year ago

tgoelles commented 1 year ago

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.