Skip to content

Commit

Permalink
secu: add nginx header config for CSP frame-ancestors (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Sep 23, 2024
1 parent 2a26504 commit 136b559
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
server {
listen 80;
listen [::]:80;

location / {
add_header Content-Security-Policy "frame-ancestors *.force.com;" always;
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}

include /etc/nginx/extra-conf.d/*.conf;
}

0 comments on commit 136b559

Please sign in to comment.