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

违反csp严格模式 #1302

Open
hawkey7 opened this issue Mar 6, 2021 · 7 comments
Open

违反csp严格模式 #1302

hawkey7 opened this issue Mar 6, 2021 · 7 comments
Labels
wontfix This will not be worked on

Comments

@hawkey7
Copy link

hawkey7 commented Mar 6, 2021

image

qiankun非常简单好用,只是它不支持CSP严格模式吗?CSP严格模式是防止xss的重要手段,eval极具安全争议,请问是否可以官方提供无eval的安全线上版本?

@gongshun
Copy link
Collaborator

gongshun commented Mar 8, 2021

部署到同域就可以了吧

@hawkey7
Copy link
Author

hawkey7 commented Mar 8, 2021

部署到同域就可以了吧

域名已经在白名单里了,只是违反了csp不允许的eval的规则

@kuitos kuitos added the wontfix This will not be worked on label May 22, 2021
@kuitos
Copy link
Member

kuitos commented May 22, 2021

csp 严格模式禁用了 eval、new Function 这写动态执行 js 的方式,这个只有 qiankun 没有沙箱的情况下才有可能移除掉

@liangsheng1314
Copy link

@kuitos 请问这个问题现在有没有解决思路,乾坤的源码里面:
const nativeGlobal: Window = new Function('return this')();
这个违反严格模式的CSP策略,官方能帮忙解决吗?

@jamesdanner
Copy link

同样是这个问题官方会在未来版本中提供解决方案吗,还是说大部分没有这个安全策略,官方默认不解决,希望官方能给个回复,如果不解决我们就采取其他的方案,谢谢

@SmileLifeIven
Copy link

image

qiankun非常简单好用,只是它不支持CSP严格模式吗?CSP严格模式是防止xss的重要手段,eval极具安全争议,请问是否可以官方提供无eval的安全线上版本?

求问解决了吗?我也遇到这个问题了

@hasnum-stack
Copy link

解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

7 participants