Skip to content

Instantly share code, notes, and snippets.

@s0kil
Last active May 27, 2020 16:48
Show Gist options
  • Select an option

  • Save s0kil/c49640e2b3e02119bfacf2a31bfc7733 to your computer and use it in GitHub Desktop.

Select an option

Save s0kil/c49640e2b3e02119bfacf2a31bfc7733 to your computer and use it in GitHub Desktop.
Netlify Security Headers
[[headers]]
for = "/*"

[headers.values]
X-Frame-Options = "DENY"
Referrer-Policy = "no-referrer"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
X-Permitted-Cross-Domain-Policies = "none"
Strict-Transport-Security = "max-age=31536000"
Content-Security-Policy = "form-action https:"
Feature-Policy = '''
accelerometer 'none';
ambient-light-sensor 'none';
autoplay 'none';
battery 'none';
camera 'none';
display-capture 'none';
document-domain 'none';
encrypted-media 'none';
fullscreen 'none';
geolocation 'none';
gyroscope 'none';
layout-animations 'none';
legacy-image-formats 'none';
magnetometer 'none';
microphone 'none';
midi 'none';
oversized-images 'none';
payment 'none';
picture-in-picture 'none';
publickey-credentials-get 'none';
sync-xhr 'none';
usb 'none';
wake-lock 'none';
xr-spatial-tracking 'none';
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment