Font from origin 'http://apps.bdimg.com' has been blocked

简介:
1.1.1 现象

原来使用百度CDN上的bootstrap 3.0.3,升级到3.3.4后即出现如下错误:

Font from origin 'http://apps.bdimg.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 'http://127.0.0.1:8080' is therefore not allowed access.

1.1.2 原因

在网上找了很多,都说要配置:

<IfModule headers_module>

Header set Access-Control-Allow-Origin "*"

</IfModule>

但是在服务器上配置了也没有效果。后来才想起来,这个配到自己的服务器上是没用的,得在CDN服务器上配置,但是这个CDN不是我们的,没法配置。

1.1.3 解决

换了个CDN:

http://cdn.bootcss.co






本文转自 tywali 51CTO博客,原文链接:http://blog.51cto.com/lancelot/1775526,如需转载请自行联系原作者
目录
相关文章
|
Java Maven
IDEA 2021 整合 SSM 配置离线 Maven 3.8.1 报错大全 Since Maven 3.8.1 http repositories are blocked.
IDEA 2021 整合 SSM 配置离线 Maven 3.8.1 报错大全 Since Maven 3.8.1 http repositories are blocked.
6667 0
IDEA 2021 整合 SSM 配置离线 Maven 3.8.1 报错大全 Since Maven 3.8.1 http repositories are blocked.
|
JSON 前端开发 API
【跨域报错解决方案】Access to XMLHttpRequest at ‘http://xxx.com/xxx‘ from origin ‘null‘ has been blocked by
【跨域报错解决方案】Access to XMLHttpRequest at ‘http://xxx.com/xxx‘ from origin ‘null‘ has been blocked by
3589 0
|
3月前
|
安全 应用服务中间件 网络安全
修复HTTPS升级后出现 Mixed Content: The page at 'https://xxx' was loaded over HTTPS, but requested an insecure frame 'http://xxx'. This request has been blocked; the content must be served over HTTPS. 的问题
修复HTTPS升级后出现 Mixed Content: The page at 'https://xxx' was loaded over HTTPS, but requested an insecure frame 'http://xxx'. This request has been blocked; the content must be served over HTTPS. 的问题
|
应用服务中间件 Linux 网络安全
【WEB】当HTTPS资源引入HTTP导致报错blocked:mixed-content (混合加载/Mixed Content)如何解决
【WEB】当HTTPS资源引入HTTP导致报错blocked:mixed-content (混合加载/Mixed Content)如何解决
【WEB】当HTTPS资源引入HTTP导致报错blocked:mixed-content (混合加载/Mixed Content)如何解决
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
1406 0
|
安全 Java Maven
from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories报错解决方案
最近升级Maven到3.8.1后,mvn编译的时候总是提示拉不到依赖,报错: Could not validate integrity of download from http://0.0.0.0/… 关键字maven-default-http-blocker。
1252 0
|
SQL Java 应用服务中间件
ssm管理系统中出现HTTP Status 403-Forbidden .Access to the specified resource has been forbidden
ssm管理系统中出现HTTP Status 403-Forbidden .Access to the specified resource has been forbidden
ssm管理系统中出现HTTP Status 403-Forbidden .Access to the specified resource has been forbidden
|
安全 iOS开发
iOS ATS(App Transport Security has blocked a cleartext HTTP (http://) resource load since it is i...
异常日志: 2018-01-04 15:33:42.270 01NSURLConnection[532:15138] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.
1313 0
|
安全 数据安全/隐私保护 iOS开发
Xcode 7 App Transport Security has blocked a cleartext HTTP 报错解决办法
Xcode 7 创建新项目用到 UIWebView 发送请求时,报下面的错:  “App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file” 找查资料后发现,新特性要求App内访问网络请求,要采用 HTTPS 协议。
913 0