54ayao / JSDMirror

一个免费面向中国境内外的高速jsdelivr镜像站
https://cdn.jsdmirror.com
Other
151 stars 3 forks source link

cdn.jsdelivr.us的响应头有两个Access-Control-Allow-Origin #23

Closed xingpingcn closed 10 months ago

xingpingcn commented 11 months ago

image

打开控制台会报错 Access to fetch at 'https://cdn.jsdelivr.us/gh/xingpingcn/picx-images-hosting@master/20230420/image.55d0qoox6bg0.png' from origin 'https://www.xingpingcn.top' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values ', ', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

如果是cdn.jsdelivr.net 就没有问题。

54ayao commented 10 months ago

好,知道了,我去发版处理一下

54ayao commented 10 months ago

谢谢

54ayao commented 10 months ago

image 以更新