DEV Community

codelitically_incorrect
codelitically_incorrect

Posted on

What is the cleanest way to format the meta tag for CSP declarations

What is the cleanest way to format the meta tag for CSP declarations that make it readable and easy to add too? How do you do structure it? The reasoning behind this question is the awkward syntax W3C proposed, and with the strictness of syntax, it's easy to screw up your CSP policy that then fails silently.

Top comments (1)

Collapse
 
bayuangora profile image
Bayu Angora

Just check mine here -> tiny.cc/-observatory