Comments (11)
how?
from baiducdnstatic.
不知道你们用什么服务器, nginx的 http://stackoverflow.com/a/17273542
from baiducdnstatic.
我是想知道你是用的什么方法引用的静态资源
from baiducdnstatic.
Firefox下
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<span class="glyphicon glyphicon-star"></span>
</body>
</html>
from baiducdnstatic.
多谢,我们马上解决。
from baiducdnstatic.
fixed
from baiducdnstatic.
还是有同样的问题,返回的header里面并没有Access-Control-Allow-Origin: * ,只好暂时用staticfile.org了
from baiducdnstatic.
Access-Control-Allow-Method:GET
Access-Control-Allow-Origin:*
确认已经加上了
from baiducdnstatic.
只有eot文件加上了,ttf和woff都没有, IE用eot, firfox用woff
from baiducdnstatic.
location ~* \.(ttf|ttc|otf|eot|woff)$ {
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Method "GET";
}
Chrome, FireFox下测试woff也是ok的,麻烦看看你那是否有缓存或者反向代理了。
from baiducdnstatic.
第一张图是我本地(上海)请求的header, 第二张是从美国的一个vps上请求的header, 都是3.1.1版本的加上了, 3.2版本的没有. 不纠结了, 能用就好了.
from baiducdnstatic.
Related Issues (20)
- 是否提供了API接口呢
- 谁加个ionicon 呗
- 实时同步CDNJS
- Echarts3.2版本更新
- 麻烦加个unslider
- 网站访问403 请求核查修复 HOT 6
- 请增加API请求接口
- Missing 'Access-Control-Allow-Origin' header in fontawesome font folder
- 麻烦把jq更新下吧 HOT 1
- 请添加一些 semantic-ui的库吧
- http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js 广告 HOT 1
- 希望能加一下fetch.js
- three.js 没有呢,,这么多 star 的库,这么好用的3D库
- EasyUI for jQuery 的free版有吗?
- 我想添加一个库 HOT 1
- 为啥只有echarts库,却没有echarts-wordcloud库,能添加一下吗?
- 能不能把PURE的库更新一下?
- 可不可以合并哈pull-request
- Hbeing
- 你们团队是不是凉了哦
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baiducdnstatic.