|
|
|
|
|
by simonw
42 days ago
|
|
That's why I'm careful not to include allow-same-origin in the sandbox attribute - without that the iframe content is treated as a separate origin from the parent. And I serve the content in srcdoc= to ensure there's no URL a user can visit which would directly execute the content outside of that iframe sandbox. |
|
It doesn't matter. I just said there is no combination of CSP or the iframe sandbox attribute that can be relied upon here.