Skip to content

What if the CSP directive is dictated from within an iframe? How should we behave?  #14

Closed

Description

@weizman
No description provided.

Activity

  1. mhofman commented on Sep 3, 2024

    @mhofman

    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.

  2. weizman commented on Sep 4, 2024

    @weizman
    CollaboratorAuthor

    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?

  3. weizman commented on Sep 11, 2024

    @weizman
    CollaboratorAuthor

    After discussing with @yoavweiss , not allowing RIC set from non top realms is fine (as the explainer already states)

  4. simon-friedberger commented on Sep 13, 2024

    @simon-friedberger

    After discussing with @yoavweiss , not allowing RIC set from non top realms is fine (as the explainer already states)

    Does that mean this is changing the semantics of CSP to not only affect the loaded document but also other documents inside?

  5. weizman commented on Sep 16, 2024

    @weizman
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions