Skip to content

Commit 22e3f49

Browse files
Do not allow iframing the frontend
1 parent 00bd9c1 commit 22e3f49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ upstream web {
55
server {
66
listen 80;
77

8+
add_header Content-Security-Policy "frame-ancestors 'none'" always;
9+
810
location ~ ^/api(/?)(.*) {
911
proxy_pass http://web/$2$is_args$args;
1012
}

0 commit comments

Comments
 (0)