3 ms·
> Maybe you could whitelist the subdomains only. https://www.npmjs.com/package/csp-by-api https://www.npmjs.com/package/csp-by-api can help with that: it conta
by nailer 11y ago
> Maybe you could whitelist the subdomains only.
https://www.npmjs.com/package/csp-by-api https://www.npmjs.com/package/csp-by-api can help with that: it contains CSPs for popular APIs so you can just add the the APIs you're using to your own CSP:
var policy = cspByAPI(basePolicy, ['twitter', 'mixpanel', 'googleFonts', 'stripe', 'typekit', 'ractive'])