DEV Community

Discussion on: Frontend Security: Content Security Policy

Collapse
 
jankapunkt profile image
Jan Küster

With a CSP in place, marketeers can no longer just add a cool new tracking-script via Google Tag Manager or similar. So: be prepared to hear a lot of complaints, unless you create a CMS-block, where they can add/remove CSP entries themselves!

No offence, but no marketeer or sales person will ever get my permission or an implementation to change any part of the CSP on their own.

Collapse
 
madsstoumann profile image
Mads Stoumann

I've worked for clients who removed a CSP-implementation or chose not to have a CSP, because marketeers wanted the freedom to implement any script via Google Tag Manager. In these cases, a CMS-block is much better than not having a CSP, although it's dangerous territory, and I agree with you.

Collapse
 
jankapunkt profile image
Jan Küster

Why am I not surprised that some clients literally come up with such decisions :-/
But under these circumstances I totally agree - better having them edit (a part of) the CSP than having none. I wonder if this would be implemented in a workflow, where the system (using include/exclude lists) or a human can review these edits, before actually publishing them.

Thread Thread
 
madsstoumann profile image
Mads Stoumann

Yes, any changes to the "CSP-config-block" can be previewed and verified before published.