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

关于接入OAuth2授权登录webview遇到csp内容安全策略问题 #5008

Open
limng06 opened this issue Jun 28, 2024 · 0 comments
Open
Labels

Comments

@limng06
Copy link

limng06 commented Jun 28, 2024

场景:公司APP采用uni-app开发,要对接oauth2授权认证,通过/oauth2/authorize自动跳转打开登录页面,因为用了webview,貌似本质上还是iframe,会出现csp内容安全相关问题
image

目前的临时方案是在后端认证服务上关闭了内容安全策略

问题:内容安全策略在生产环境上肯定要是添加的,那么关于这个问题有没有其它的解决方案

@limng06 limng06 changed the title 关于接入OAuth2授权登录webview遇到cs【 关于接入OAuth2授权登录webview遇到csp内容安全策略问题 Jun 28, 2024
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

2 participants