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

What is the 'self' of sandboxed page? #260

Closed
shhnjk opened this issue Oct 28, 2017 · 0 comments
Closed

What is the 'self' of sandboxed page? #260

shhnjk opened this issue Oct 28, 2017 · 0 comments
Milestone

Comments

@shhnjk
Copy link
Member

shhnjk commented Oct 28, 2017

Following test shows that all browsers treat 'self' as url's origin for sandboxed page.

https://test.shhnjk.com/csp_sandbox.php?xss=%3Cscript%20src=/alert.js%3E%3C/script%3E%3Cimg%20src=/test.jpeg%3E&csp=allow-scripts%20allow-modals;%20default-src%20%27self%27

But the spec doesn't seem to say so.

What is the right behavior here?

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