Jai*_*ime 5 google-chrome github cross-domain
我的chrome版本:50.0.2661.75 m访问GitHub,无法加载css和javascript错误:
CSS stylesheet from origin 'https://assets-cdn.github.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://github.com' is therefore not allowed access.
github.com/:1 Script from origin 'https://assets-cdn.github.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://github.com' is therefore not allowed access.
github.com/:1 CSS stylesheet from origin 'https://assets-cdn.github.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://github.com' is therefore not allowed access.
github.com/:1 Script from origin 'https://assets-cdn.github.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://github.com' is therefore not allowed access.
Run Code Online (Sandbox Code Playgroud)
我测试IE 11和旧版本的chrome(49.0.2623.112 m),没关系.
我知道这发生在我身上,所以我创建了一个 Chrome 扩展来解决这个问题。安装说明如下。
\n\n\n如何安装扩展
\n
</>1. 免费下载
2. 按链接下载 crx 文件
3.在 URL 框中键入chrome://extensionsEnter
,然后点击4. 打开 .crx 文件保存的位置
5. 将 .crx 文件拖放到 chrome中://extensions website
6. 当您将 .crx 文件悬停在网站中时,它将显示 Drop file here to install
7. 一旦您放置 .crx 文件,它将显示Add extension\xc2\xa0&\xc2\xa0 Cancel
8. 按Add extension
9 . 完成
10. 现在只需转到Github,它应该可以与加载的所有 CSS/JS 一起使用。
CSS/JS 未加载是因为我很确定谷歌正在尝试停止跨源加载,他们说这是出于安全原因。我不确定,但我创建的扩展将在 github 上修复该问题...该扩展最近已完成,所以我仍在尝试修复一些错误
更新: \n好吧,我刚刚更新了扩展,现在修复了错误,它工作得很好,我添加了自动更新功能,因此当我更新它时,它会自动检测并更新到最新版本。如果是,您可以下载新版本在这里您只需下载并安装此扩展一次,之后它会自动更新到最新版本如果您想手动更新请按照以下说明操作
\n\n\n如何手动更新扩展
\n
</>1. 转到chrome://extensions
2. 查看页面右上角3. 选中显示开发人员模式的
框4. 单击位于显示开发人员模式的复选框正下方的按钮5.扩展程序现已更新。启用开发人员模式复选框不会损害大多数扩展/应用程序开发人员所使用的任何内容
Update Extensions now
如果您不想启用开发人员模式,则不必启用,但它需要几个小时才能检测到扩展的更新版本。
\n抱歉,我正在尝试再次修复该扩展程序,但它已停止工作
现在一切正常
\n最后更新:要更新这一点,该扩展已经超过 4 年没有更新了,我不再维护它以供将来的更新使用,因此它将不再起作用。
\n| 归档时间: |
|
| 查看次数: |
983 次 |
| 最近记录: |