mozilla / csp-logger

Log all the CSP violations!
57 stars 10 forks source link

Configurable CORS #5

Open naugtur opened 10 years ago

naugtur commented 10 years ago

csp-logger can optionally return CORS headers, but it can be a security problem allowing for a DDOS.

I guess we could use the whitelist as allowed CORS domains and add a 'overrideCORS' config option to configuration in case the user wants to set them differently.

But maybe it should be off by default and only enabled by config?