Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ upstream web {
server {
listen 80;

<<<<<<< header-content-type
add_header X-Content-Type-Options "nosniff" always;
=======
add_header Content-Security-Policy "frame-ancestors 'none'" always;
>>>>>>> main

location ~ ^/api(/?)(.*) {
proxy_pass http://web/$2$is_args$args;
Expand Down
1 change: 1 addition & 0 deletions widget/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ server {

listen 80;

add_header X-Content-Type-Options "nosniff" always;
set $FRAME_ANCESTORS "frame-ancestors ${FRAME_ANCESTORS}";
add_header Content-Security-Policy "${FRAME_ANCESTORS}" always;

Expand Down