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-Opener-Policy': 'same-origin', 'Cross-Origin-Embedder-Policy': 'require-corp' #735

Open
syjf opened this issue Apr 19, 2024 · 7 comments

Comments

@syjf
Copy link

syjf commented Apr 19, 2024

Add 'Cross-Origin-Opener-Policy': 'same-origin', 'Cross-Origin-Embedder-Policy': 'require-corp',How to solve the problem of not being able to access third-party iframes and images

@W-P-DPP
Copy link

W-P-DPP commented Apr 28, 2024

Add a field to the response header (Cross-Origin-Resource-Policy:'same-origin')

@syjf
Copy link
Author

syjf commented Apr 28, 2024

将字段添加到响应标头 (Cross-Origin-Resource-Policy:'same-origin')
What should iframe do

@W-P-DPP
Copy link

W-P-DPP commented Apr 28, 2024

如果你想通过标签(如script,iframe)的方式去请求第三方资源,你只能通过代理的方式(在你请求的第三方资源的路径前添加一个代理地址),可以尝试一下使用nginx

@syjf
Copy link
Author

syjf commented Apr 28, 2024

如果你想通过标签(如script,iframe)的方式去请求第三方资源,你只能通过代理的方式(在你请求的第三方资源的路径前添加一个代理地址),可以尝试一下使用nginx

你是说在发布的时候配置nginx吗,我本地该怎么配置

@W-P-DPP
Copy link

W-P-DPP commented Apr 28, 2024

如果你想通过标签(如script,iframe)的方式去请求第三方资源,你只能通过代理的方式(在你请求的第三方资源的路径前添加一个代理地址),可以尝试一下使用nginx

你是说在发布的时候配置nginx吗,我本地该怎么配置

本地也需要配置代理

@syjf
Copy link
Author

syjf commented Jun 3, 2024

如果你想通过标签(如script,iframe)的方式去请求第三方资源,你只能通过代理的方式(在你请求的第三方资源的路径前添加一个代理地址),可以尝试一下使用nginx

你是说在发布的时候配置nginx吗,我本地该怎么配置

本地也需要配置代理

能加个Q或者V请教下吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants