Skip to content

Commit

Permalink
Remove integrity check for the locally served .js scripts #doc
Browse files Browse the repository at this point in the history
From
https://securityheaders.com/?q=https%3A%2F%2Fox-hugo.scripter.co&followRedirects=on,
it's not advisable to enable CORS for non-public CDN.

> Access-Control-Allow-Origin This is a very lax CORS policy. Such a
  policy should only be used on a public CDN.
  • Loading branch information
kaushalmodi committed May 1, 2018
1 parent 69bac33 commit 7982508
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions doc/static/_headers
Expand Up @@ -46,11 +46,6 @@
/*
X-Content-Type-Options: nosniff

## Enable CORS
# https://enable-cors.org/server.html
/*
Access-Control-Allow-Origin: *

# Content Security Policy
## Hashes for Privacy Badger injected scripts: https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/blob/29fc983ac72fa886ac39bff6b46dc7e426cb993b/netlify.toml#L174-199
/*
Expand Down
2 changes: 1 addition & 1 deletion doc/themes/hugo-onyx-theme

0 comments on commit 7982508

Please sign in to comment.