Skip to content
Discussion options

You must be logged in to vote

SRI也会检查CORS

Note: For subresource-integrity verification of a resource served from an origin other than the document in which it's embedded, browsers additionally check the resource using Cross-Origin Resource Sharing (CORS), to ensure the origin serving the resource allows it to be shared with the requesting origin.

all.min.css的header:

Accept-Ranges: bytes
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 20562
Content-Type: text/css
Date: Tue, 20 Sep 2022 04:20:57 GMT
ETag: "ea02c1-189ae-5e8b3d3ef0400"
Keep-Alive: timeout=15, max=300
Last-Modified: Thu, 15 Sep 2022 09:25:36 GMT
Server: Apache
Vary: Accept-Encoding,User-Agent

可以看到,style标签设置了crossorigin="anonymous",但HTTP h…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@duchengyao
Comment options

@stevenjoezhang
Comment options

@duchengyao
Comment options

@njzjz
Comment options

njzjz Sep 20, 2022
Collaborator

@duchengyao
Comment options

Comment options

You must be logged in to vote
3 replies
@duchengyao
Comment options

@njzjz
Comment options

njzjz Sep 23, 2022
Collaborator

@duchengyao
Comment options

Answer selected by stevenjoezhang
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
Q&A
Labels
None yet
4 participants