diff --git a/csp-policy.yml b/csp-policy.yml
index 584e2ed..01d3bf3 100644
--- a/csp-policy.yml
+++ b/csp-policy.yml
@@ -1,32 +1,72 @@
-# Sets
+# Content Security Policy
#
-# Should yield the follwoiung header:
+# Should yield the following header:
# "Content-Security-Policy: default-src 'self';
# script-src 'self' example.com;object-src 'none';
# upgrade-insecure-requests"
# Note: embedded single quotes are required
-xFrameOptions: SAMEORIGIN
contentSecurityPolicy:
useDefaults: false
directives:
- default-src: [ "'self'" ]
- base-uri: [ "'self'" ]
- font-src:
+ default-src: ["'self'"] # Allow content only from same origin
+ base-uri: ["'self'"] # Restrict tag
+ font-src: # Allow font loading from safe sources
- "'self'"
- "https:"
- "data:"
- form-action: [ "'self'" ]
- frame-ancestors: [ "'self'" ]
- img-src:
+ form-action: ["'self'"] # Restrict form submissions
+ frame-ancestors: ["'self'"] # Prevent clickjacking
+ img-src: # Allow inline and local images
- "'self'"
- "data:"
- object-src: [ "'none'" ]
- script-src:
+ object-src: ["'none'"] # Disable