question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider asserting a `Cross-Origin-Resource-Policy`?

See original GitHub issue

Hey folks! Hopefully this is a reasonable repository for requests like this one. 😃

Cross-Origin-Resource-Policy (CORP) is an HTTP response header that asserts a scope in which a given resource is allowed to be embedded. Today, the default for all resources is to allow cross-site loads, which unfortunately creates the conditions for side-channel attacks via Spectre, et al. With this background, browser vendors are interested in changing this default generally in the long-term, and in the short-term will allow developers to require explicit opt-in via Cross-Origin-Embedder-Policy. This opt-in will be a prerequisite for some particularly interesting APIs like SharedArrayBuffer.

To support this migration, it would be ideal if y’all could begin adding this assertion explicitly to resources that are expected to be used by various sites out there on the internet (e.g. by sending a Cross-Origin-Resource-Policy: cross-origin header). This should be a no-op in the status quo, and will ensure that y’all aren’t blocking developers from opting-into Cross-Origin-Embedder-Policy (and therefore exciting new APIs).

If there’s any more context I can give you about this set of features, I’d be happy to chat!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kweijcommented, Jan 20, 2022

@mikewest, good call on the Chrome bug. I’ve reported it and it’s fixed already: https://bugs.chromium.org/p/chromium/issues/detail?id=1287500

1reaction
MartinKolarikcommented, Apr 5, 2020

Thanks for the clarification. We’ll add this in the near future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Consider asserting a Cross-Origin-Resource-Policy ? #13782
Cross-Origin-Resource-Policy (CORP) is an HTTP response header that asserts a scope in which a given resource is allowed to be embedded.
Read more >
Consider deploying cross-origin resource policy!
In particular, if you host resources that others depend upon, it would be an excellent idea to explicitly assert a cross-origin resource policy...
Read more >
Cross-Origin Embedder Policy
... which cross-origin responses must either assert a Cross-Origin-Resource-Policy header which allows the embedding, or pass a CORS check.
Read more >
Cross-Origin Resource Policy (CORP) - HTTP - MDN Web Docs
During a cross-origin resource policy check, if the header is set, the browser will deny no-cors requests issued from a different origin/site.
Read more >
Post-Spectre Web Development - W3C
Sending Cross-Origin-Resource-Policy: same-origin is therefore not harmful, and works to ensure that no-cors usage isn't accidentally allowed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found