Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-Origin Resource Policy (CORP) #111

Open
xiaotiandada opened this issue Jun 7, 2022 · 0 comments
Open

Cross-Origin Resource Policy (CORP) #111

xiaotiandada opened this issue Jun 7, 2022 · 0 comments
Labels

Comments

@xiaotiandada
Copy link
Owner

xiaotiandada commented Jun 7, 2022

如果父级设置了 Cross-Origin-Opener-Policy

[
  {
    key: 'Cross-Origin-Embedder-Policy',
    value: 'require-corp',
  },
  {
    key: 'Cross-Origin-Opener-Policy',
    value: 'same-origin',
  },
]

引用外部链接会无法工作,比如说 s3 img 资源。需要设置 header

example: cross-origin-resource-policy: cross-origin

image

Cross-Origin-Resource-Policy: same-site | same-origin | cross-origin

引入 iframe easyRPG player 也会被阻止

image

还会出现 cross-origin-embedder-policy 警告

image

Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Resource-Policy: cross-origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant