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

Add require-corp embedder policy header to service worker #338

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AndrewJakubowicz
Copy link
Collaborator

@AndrewJakubowicz AndrewJakubowicz commented Oct 6, 2022

Upstream a recommended header that enforces CORS.
Documentation for the header: https://html.spec.whatwg.org/multipage/origin.html#coep

DO NOT SUBMIT: In current state this is a breaking change. See comment: #338 (comment)

@AndrewJakubowicz AndrewJakubowicz force-pushed the upstream-cross-origin-embedder-policy branch from 0f8d125 to 1268c8a Compare October 10, 2022 16:49
@AndrewJakubowicz AndrewJakubowicz marked this pull request as ready for review October 10, 2022 17:22
@AndrewJakubowicz AndrewJakubowicz removed the request for review from aomarks October 10, 2022 17:30
@AndrewJakubowicz
Copy link
Collaborator Author

On further testing this change would be breaking. For example, we often use resources from another origin for demonstrating example images. Any image elements without the crossorigin attribute would break. E.g.:

Screen Shot 2022-10-10 at 10 34 58 AM

Two proposed options:

  • Make this opt-in (if possible).
  • Revert this change and keep this as an internal only change.

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.

1 participant