diff options
author | emrah <emrah.eryilmaz@nordeck.net> | 2024-01-03 15:05:02 +0300 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2024-01-03 15:37:29 +0100 |
commit | c81e79c8c0e5ca923193f114846b274073365b39 (patch) | |
tree | 6f1d40412d4fb0601de53bf45f6f0a3dc4295326 /main.js | |
parent | 63d3bca07eeef324e1322163fe7b645b8ec5aaf7 (diff) |
fix(main): filter out frame-ancestors if exists in Content-Security-Policy
Diffstat (limited to 'main.js')
-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 }); |