Giter VIP home page Giter VIP logo

Comments (11)

huang-xin avatar huang-xin commented on July 21, 2024

how?

from baiducdnstatic.

zhangshine avatar zhangshine commented on July 21, 2024

不知道你们用什么服务器, nginx的 http://stackoverflow.com/a/17273542

from baiducdnstatic.

huang-xin avatar huang-xin commented on July 21, 2024

我是想知道你是用的什么方法引用的静态资源

from baiducdnstatic.

zhangshine avatar zhangshine commented on July 21, 2024

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.

huang-xin avatar huang-xin commented on July 21, 2024

多谢,我们马上解决。

from baiducdnstatic.

huang-xin avatar huang-xin commented on July 21, 2024

fixed

from baiducdnstatic.

zhangshine avatar zhangshine commented on July 21, 2024

还是有同样的问题,返回的header里面并没有Access-Control-Allow-Origin: * ,只好暂时用staticfile.org了

from baiducdnstatic.

huang-xin avatar huang-xin commented on July 21, 2024

Access-Control-Allow-Method:GET
Access-Control-Allow-Origin:*
确认已经加上了

from baiducdnstatic.

zhangshine avatar zhangshine commented on July 21, 2024

只有eot文件加上了,ttf和woff都没有, IE用eot, firfox用woff

from baiducdnstatic.

huang-xin avatar huang-xin commented on July 21, 2024
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.

zhangshine avatar zhangshine commented on July 21, 2024

第一张图是我本地(上海)请求的header, 第二张是从美国的一个vps上请求的header, 都是3.1.1版本的加上了, 3.2版本的没有. 不纠结了, 能用就好了.

screenshot from 2014-07-25 13 44 27
usa

from baiducdnstatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.