Content Security Policy and XSS defense

W3C introduced a standard to help protect websites against XSS by adding the following meta tag to the website response generated by a server:

Content-Security-Policy: script-src 'self'; object-src 'none'


W3C Standard

Content Security Policy 1.0 is officially awesome

An Introduction to Content Security Policy

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: