Skip to content

Implement COOP and COEP #562

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

daxpedda
Copy link

@daxpedda daxpedda commented Jul 23, 2022

See the Mozilla documentation on COOP and COEP.

i noticed that some of the documentation was basically copy-pasted from the Mozilla documentation, so I did the same. Happy to use my own wording if that's undesired.

Fixes #460.

@daxpedda
Copy link
Author

Rebased after #579.

@perry-birch
Copy link

Working on a PR in a dependent lib which could use this if it's close to approval.

Updates look correct to me.

@Vagelis-Prokopiou
Copy link

Vagelis-Prokopiou commented Sep 26, 2024

Hello all.

I would also suggest adding the following headers too:

  • Cross-Origin-Resource-Policy
  • X-Permitted-Cross-Domain-Policies
  • Clear-Site-Data

They are headers recommended by OWASP (see https://owasp.org/www-project-secure-headers/#configuration-proposal) (along with COOP and COEP), and I think that they should exist in http as constants.

What do you think?
Plus, should a new PR be created?

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

Successfully merging this pull request may close these issues.

Add CROSS_ORIGIN_EMBEDDER_POLICY and CROSS_ORIGIN_OPENER_POLICY constants
5 participants