diff options
-rw-r--r-- | main.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -272,6 +272,15 @@ function createJitsiMeetWindow() { details.responseHeaders['content-security-policy'] = [ cspFiltered ]; } + if (details.responseHeaders['Content-Security-Policy']) { + const cspFiltered = details.responseHeaders['Content-Security-Policy'][0] + .split(';') + .filter(x => x.indexOf('frame-ancestors') === -1) + .join(';'); + + details.responseHeaders['Content-Security-Policy'] = [ cspFiltered ]; + } + callback({ responseHeaders: details.responseHeaders }); |