Skip to content

Commit 72e6332

Browse files
ikreymerSuaYoo
andauthored
quickfix: add frame-ancestors csp policy (#3039)
- disallow external framing most of the app, except profile browsers for debugging --------- Co-authored-by: sua yoo <sua@webrecorder.org>
1 parent a2b9ff2 commit 72e6332

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/frontend.conf.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ server {
3939
root /usr/share/nginx/html;
4040
index index.html index.htm;
4141
try_files $uri /index.html;
42+
43+
add_header Content-Security-Policy "frame-ancestors 'self'";
4244
}
4345

4446
location ~* /docs/(.*)$ {
@@ -148,6 +150,8 @@ server {
148150

149151
proxy_pass http://browser-$browserid.browser$fqdn_suffix:9223/vnc/;
150152
proxy_set_header Host "localhost";
153+
154+
add_header Content-Security-Policy "frame-ancestors 'self' localhost:*";
151155
}
152156

153157
location = /access_check_profiles {

0 commit comments

Comments
 (0)