Skip to content
Discussion options

You must be logged in to vote

可以确定是CDN的国外节点没有配置Access-Control-Allow-Origin响应头了

测试命令:

curl 'https://s4.zstatic.net/ajax/libs/lodash.js/4.17.21/lodash.min.js' -Ss -D - -o /dev/null | sort

国内的响应:

HTTP/2 200
accept-ranges: bytes
access-control-allow-origin: *
access-control-max-age: 31536000
cache-control: public, max-age=31536000
content-length: 73015
content-type: application/javascript; charset=utf-8
cross-origin-resource-policy: cross-origin
date: Mon, 06 Jan 2025 13:46:37 GMT
etag: "603148ce-11d37"
expires: Thu, 25 Dec 2025 13:13:25 GMT
last-modified: Sat, 20 Feb 2021 17:37:18 GMT
server: WAFPRO
strict-transport-security: max-age=31536000
timing-allow-origin: *
vary: Accept-Encoding
vary: Accept-Encoding
x-cache-stat…

Replies: 10 comments 8 replies

Comment options

Comment options

You must be logged in to vote
2 replies
@xfgryujk
Comment options

@zhengye1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@luyanci
Comment options

@xfgryujk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@xfgryujk
Comment options

Comment options

You must be logged in to vote
2 replies
@xfgryujk
Comment options

@xfgryujk
Comment options

Comment options

You must be logged in to vote
1 reply
@xfgryujk
Comment options

Answer selected by xfgryujk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
提问
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #250 on January 03, 2025 14:12.