Add CSP sandbox on nginx hotlink image responses.
Block script in user content when /i/ is opened as a document, e.g. SVG opened in a tab.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
location ^~ /i/ {
|
||||
add_header Content-Security-Policy "sandbox" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Cross-Origin-Resource-Policy "cross-origin" always;
|
||||
add_header Cache-Control "private, no-store" always;
|
||||
|
||||
Reference in New Issue
Block a user