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

Firefox无法访问 #2

Open
wks opened this issue Sep 17, 2022 · 0 comments
Open

Firefox无法访问 #2

wks opened this issue Sep 17, 2022 · 0 comments

Comments

@wks
Copy link

wks commented Sep 17, 2022

使用Chromium可以访问,页面的各个区块会逐步显示。但在Firefox中打开时,页面一片空白,所有的动画效果都不见了。

控制台中可以看到一些报错信息,如:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css. (Reason: CORS request did not succeed). Status code: (null).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css. (Reason: CORS request did not succeed). Status code: (null).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cdn.jsdelivr.net/npm/[email protected]/lib/anime.min.js. (Reason: CORS request did not succeed). Status code: (null).

None of the “sha256” hashes in the integrity attribute match the content of the subresource. [codesire-deng.github.io](https://codesire-deng.github.io/)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cdn.jsdelivr.net/npm/@next-theme/[email protected]/pjax.min.js. (Reason: CORS request did not succeed). Status code: (null).

None of the “sha256” hashes in the integrity attribute match the content of the subresource. [codesire-deng.github.io](https://codesire-deng.github.io/)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cdn.jsdelivr.net/npm/[email protected]/dist/search.js. (Reason: CORS request did not succeed). Status code: (null).

None of the “sha256” hashes in the integrity attribute match the content of the subresource. [codesire-deng.github.io](https://codesire-deng.github.io/)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cdn.jsdelivr.net/npm/[email protected]/dist/gitalk.css. (Reason: CORS request did not succeed). Status code: (null).

猜测Firefox的跨站访问策略稍微严格一些,可能需要在页面中声明一些东西才可以。不过我倒是觉得反正GitHub Pages不要钱,不如直接把依赖的js文件放进repo,也免得CDN在不同地区访问速度不一样。

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