Skip to content

Instantly share code, notes, and snippets.

@nfisher
Created February 16, 2018 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfisher/bbf16bfa59c33e4fce384ac8990d84db to your computer and use it in GitHub Desktop.
Save nfisher/bbf16bfa59c33e4fce384ac8990d84db to your computer and use it in GitHub Desktop.
Sample CSP handlers section for Google App Engine
handlers:
- url: /(.*\.html)
static_files: public/\1
upload: public/(.*\.html)
mime_type: text/html; charset=UTF-8
secure: always
expiration: "0d 3m"
http_headers:
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Content-Security-Policy: default-src 'none'; font-src 'self' https://cdnjs.cloudflare.com https://fonts.gstatic.com a.gwponline.com; style-src 'self' https://cdnjs.cloudflare.com https://fonts.googleapis.com a.gwponline.com; img-src 'self' ws1.postescanada-canadapost.ca a.gwponline.com; script-src 'self' a.gwponline.com; connect-src 'self' ws1.postescanada-canadapost.ca; media-src a.gwponline.com
Referrer-Policy: same-origin
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment