mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
Update backend/nginx.conf
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
8f1c60a440
commit
64bfda6bf0
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ http {
|
|||
|
||||
# Separate location for PDFs under /protectedMedia/
|
||||
location ~* ^/protectedMedia/.*\.pdf$ {
|
||||
internal;
|
||||
alias /code/media/;
|
||||
add_header Content-Security-Policy "default-src 'self'; script-src 'none'; object-src 'none'; base-uri 'none'" always;
|
||||
add_header X-Content-Type-Options nosniff always;
|
||||
add_header X-Frame-Options SAMEORIGIN always;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue