Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Added notes about CSP for Nginx reverse proxy
Browse files Browse the repository at this point in the history
Also added: frame-ancestors 'self' which is the CSP equivelent to X-Frame-Options sameorigin
  • Loading branch information
iotku authored Oct 18, 2019
1 parent 991fd82 commit a5c0339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion general/administration/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ server {
#
# # Content Security Policy
# # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
# add_header Content-Security-Policy "default-src https: data: blob:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com/cv/js/sender/v1/cast_sender.js; worker-src 'self' blob:; connect-src 'self'; object-src 'none'";
# # Enforces https content and restricts JS/CSS to origin
# # External Javascript (such as cast_sender.js for Chromecast) must be whitelisted.
# add_header Content-Security-Policy "default-src https: data: blob:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com/cv/js/sender/v1/cast_sender.js; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self'";
#
# location / {
# # Proxy main Jellyfin traffic
Expand Down

0 comments on commit a5c0339

Please sign in to comment.