-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hot fix nginx push state routing (#2063)
* hot fix nginx push state routing * update conf
- Loading branch information
Showing
3 changed files
with
71 additions
and
104 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Security | ||
## Always HTTPS | ||
add_header Strict-Transport-Security "max-age=31449600; includeSubDomains" always; # 1 year | ||
## Don't open in Iframe | ||
add_header X-Frame-Options "DENY" always; | ||
## No content type autodiscovery | ||
add_header X-Content-Type-Options "nosniff" always; | ||
## Don't disclose full url when navigating to links | ||
add_header Referrer-Policy "strict-origin" always; | ||
## New Header for features | ||
## https://www.w3.org/TR/permissions-policy-1/ | ||
add_header Permissions-Policy "microphone=(); geolocation=(self); camera=()" always; | ||
## CSP | ||
## TODO: WHEN GOING PROD CHANGE TO Content-Security-Policy | ||
add_header Content-Security-Policy-Report-Only "default-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline' fonts.googleapis.com *.fontawesome.com; font-src fonts.gstatic.com *.fontawesome.com; script-src 'self'; script-src-elem 'self'; base-uri 'self'; img-src https://* 'self' data:; trusted-types angular; require-trusted-types-for 'script'" always; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters