# Content Security Policy
#
# 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
contentSecurityPolicy:
useDefaults: false
directives:
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'"] # Restrict form submissions
frame-ancestors: ["'self'"] # Prevent clickjacking
img-src: # Allow inline and local images
- "'self'"
- "data:"
object-src: ["'none'"] # Disable