我在用兽兽的 CSS.NET 做 Google Web Font 的镜像,但在使用的时候 Chrome 报错:
Font from origin 'https://cdn.css.net' has been blocked from loading by Cross-Origin Resource Sharing policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'https://simod.org' is therefore not allowed access.
Google 到的结果都是 ASP.NET 的一些东西,还有些是 Apache 的配置,说要添加 Access-Control-Allow-Origin * 这样的 header,目前兽兽那边已经添加了,请问怎么解决呢?
1
MrGba2z 2015-08-14 07:55:45 +08:00
|
3
coraline 2015-08-14 08:24:02 +08:00
contains multiple values '*, *'
是不是你 Access-Control-Allow-Origin 写错了,写成 '*, *',两个星号 |
5
coraline 2015-08-14 08:43:56 +08:00
@simodorg
我感觉是 cdn 那边有问题,我这边 get 看到得 header 是两个星号 Remote Address:14.17.123.71:80 Request URL:http://cdn.css.net/ Request Method:GET Status Code:200 OK Response Headers view source Access-Control-Allow-Origin:*, * Age:0 Connection:keep-alive |