-
Notifications
You must be signed in to change notification settings - Fork 0
Header: Content Security Policy
Ryan Parman edited this page Jun 14, 2024
·
5 revisions
The Content-Security-Policy
HTTP response header allows website administrators to control resources the user agent is allowed to load for a given page. It will enforce the policy, and send reports back to the URLs defined with the report-uri or report-to directives. This helps guard against cross-site scripting attacks (Cross-site scripting).
See Content Security Policy (CSP) for more information.
Content licensed under CC BY-SA.
- 🧪 Experimental, with limited support
⚠️ Important notes on usage- 🚫 Deprecated or obsolete
- base-uri
- block-all-mixed-content 🚫
- child-src
- connect-src
- default-src
- fenced-frame-src 🧪
- font-src
- form-action
- frame-ancestors
- frame-src
- img-src
- manifest-src
- media-src
- navigate-to 🚫
- object-src
- plugin-types 🚫
- prefetch-src 🚫
- referrer 🚫
- report-to 🧪
-
report-uri
⚠️ - require-trusted-types-for 🧪
- sandbox
- script-src-attr
- script-src-elem
- script-src
- style-src-attr
- style-src-elem
- style-src
- trusted-types 🧪
- upgrade-insecure-requests
- webrtc
- worker-src