[serving feature] Support Cross Origin Resource Policy for hosted js script
See original GitHub issueIn order to be able to use the iconify script with the <script>
tag and with Cross Origin Embedder Policy enabled (good security practice), the iconify server would be required to respond with the Cross Origin Resource Policy set to ‘cross-origin’.
Is it something doable on your side?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Cross-Origin Resource Sharing (CORS) - MDN Web Docs
CORS also relies on a mechanism by which browsers make a "preflight" request to the server hosting the cross-origin resource, ...
Read more >Cross-Origin Resource Sharing (CORS) - AWS SDK for ...
Cross -origin resource sharing, or CORS, is a security feature of modern web browsers. It enables web browsers to negotiate which domains can...
Read more >A guide to enable cross-origin isolation - web.dev
This guide shows you how to enable cross-origin isolation. Cross-origin isolation is required if you want to use SharedArrayBuffer ...
Read more >CORS Tutorial: A Guide to Cross-Origin Resource Sharing
is a protocol that enables scripts running on a browser client to interact with resources from a different origin.
Read more >Authoritative guide to CORS (Cross-Origin Resource Sharing ...
CORS is a relaxation of the same-origin policy implemented in modern browsers. Without features like CORS, websites are restricted to accessing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tested differences with and without header. It does fix issue and doesn’t break anything for users that do not use cross-origin headers. Added headers to
code.iconify.design
.It will take a while to add them to API because there are many servers. Each of them needs to be temporarily taken out of network to update nginx config and I want to start with server in Frankfurt that is closest to me so I could see changes immediately, which should be done early in the morning when traffic is lowest. So I’ll start working on that tomorrow.
@cyberalien @qortex using popular cdn returning this headers (last 3 not required: for example google fonts send them):
Check headers for these urls:
I have had problems using some cdn with pwa and opaque resources: with previous headers the problem disappear (some
crossorigin="anonymous"
attr required).