-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add new RENDER_CONTENT_IFRAME_SANDBOX for the iframe sandbox when load html, Add RENDER_CONTENT_EXTERNAL_CSP for the external render Content-Security-Policy header #20180
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
base: main
Are you sure you want to change the base?
Conversation
My thought is: there could be two options (one RENDER_CONTENT_IFRAME_SANDBOX for the iframe Then users can customize everything if they want, they pay attention for their security and risks. |
Is that really necessary to have so many options for users? |
Because there are even more options for |
Done. |
This comment was marked as outdated.
This comment was marked as outdated.
b49aeed
to
73dde8b
Compare
This issue seems more complex than it looks like. More information here: By default, the Since there is no And there is no direct access to According to lunny, this PR could be set to WIP |
@wxiaoguang Do you have further questions? |
I didn't have any question. You suggested to put it in WIP. |
Yes, in that time. But now I think maybe we could consider to merge it. |
What happen to this change? Is there any reason why it seems things have gone stale? As I think we are running into this exact issue currently. |
I think the reason is:
|
When render with RENDER_CONTENT_MODE with iframe, it in fact cannot render correct because the url of iframe is the same origin of parent window url. This PR adds new RENDER_CONTENT_IFRAME_SANDBOX for the iframe sandbox when load html, Add RENDER_CONTENT_EXTERNAL_CSP for the external render Content-Security-Policy header