CSP

Content Security Policy

# CSP Checker
https://csp-evaluator.withgoogle.com/

# The following directive only allows scripts to be loaded from the same source as the page itself:
script-src 'self'

# The following directive will only allow scripts to be loaded from a specific domain:
script-src https://scripts.normal-website.com

# The following directive will only allow images to be loaded from the same origin as the page itself:
img-src 'self'

# The following directive will only allow images to be loaded from a specific domain:
img-src https://images.normal-website.com

# The following directive will only allow the page to be framed by other pages of the same origin:
frame-ancestors 'self'

# The following directive will prevent framing completely:
frame-ancestors 'none'

# you can specify multiple domains and use wildcards
frame-ancestors 'self' https://normal-website.com https://*.robust-website.com

Last updated