simpleanalytics / roadmap

File you bugs and feature requests here
23 stars 2 forks source link

Support CORP Headers #585

Open simpleanalyticsbot opened 3 years ago

simpleanalyticsbot commented 3 years ago

There's new security headers that allow sites to specify which cross-domain resources are allowed to be loaded on their site and which of their resources can be loaded on others. One of those headers Cross-Origin-Resource-Policy allows for require-corp which says all third-party resources must also have a CORP header. Would be great for SA to add these so that we can set require-corp as a policy.

https://scotthelme.co.uk/coop-and-coep/ for more info.

adriaandotcom commented 3 years ago

@dryan is this for the JavaScripts? What should the value be for those headers on our side?

dryan commented 2 years ago

Hey sorry I never responded. I don't ever notice GitHub emails.

Yes it's the latest.js URL that needs the new header Cross-Origin-Resource-Policy. A value of cross-origin would let any site embed latest.js just like now, but with the explicit CORP policy set.