You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
What if the CSP directive is dictated from within an iframe? How should we behave? #14
IMO the directive should only apply where current CSP directives apply, aka same origin realms covered by the same policy containers: about:blank and co, but not same origin iframes covered by their own CSP.
Right, I agree, this issue was derived mainly by the question what's the expected behaviour in case parent dictates no CSP and SO iframe dictates an RIC?
Do we accept it? And if so, who do we run it for? Its children only? What counts as a child? Is a child an iframe created by a realm? (even if attached to top), or only if it's attached to that realm (even if created at top)?
Or, would it just be easier to reject RIC scripts registration if not dictated by the top?
I sympathize with the concerns suggested by your question, we are currently doing some homework regarding whether that's the case and if that changes how well CSP is positioned to accomplish our goal.
I'm leaving this as closed because the wondering around CSP is being worked on at #10.
Activity
mhofman commentedon Sep 3, 2024
IMO the directive should only apply where current CSP directives apply, aka same origin realms covered by the same policy containers: about:blank and co, but not same origin iframes covered by their own CSP.
weizman commentedon Sep 4, 2024
Right, I agree, this issue was derived mainly by the question what's the expected behaviour in case parent dictates no CSP and SO iframe dictates an RIC?
Do we accept it? And if so, who do we run it for? Its children only? What counts as a child? Is a child an iframe created by a realm? (even if attached to top), or only if it's attached to that realm (even if created at top)?
Or, would it just be easier to reject RIC scripts registration if not dictated by the top?
weizman commentedon Sep 11, 2024
After discussing with @yoavweiss , not allowing RIC set from non top realms is fine (as the explainer already states)
simon-friedberger commentedon Sep 13, 2024
Does that mean this is changing the semantics of CSP to not only affect the loaded document but also other documents inside?
weizman commentedon Sep 16, 2024
I sympathize with the concerns suggested by your question, we are currently doing some homework regarding whether that's the case and if that changes how well CSP is positioned to accomplish our goal.
I'm leaving this as closed because the wondering around CSP is being worked on at #10.