From 4887e30027159d8ee2a24f6493e4f9efba902817 Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Thu, 9 Feb 2023 22:44:42 +0100 Subject: [PATCH 1/2] make etherscan load in iframe --- extension/src/background.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension/src/background.ts b/extension/src/background.ts index 8ea581da..749334b7 100644 --- a/extension/src/background.ts +++ b/extension/src/background.ts @@ -20,6 +20,8 @@ const updateRule = () => { // @ts-expect-error @types/chrome has not been updated for Chrome Extensions Manifest V3 { header: 'x-frame-options', operation: 'remove' }, // @ts-expect-error @types/chrome has not been updated for Chrome Extensions Manifest V3 + { header: 'X-Frame-Options', operation: 'remove' }, + // @ts-expect-error @types/chrome has not been updated for Chrome Extensions Manifest V3 { header: 'content-security-policy', operation: 'remove' }, ], }, From c0c050ae19fd29f280edd63f384a1ff56c6220b8 Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Thu, 9 Feb 2023 22:49:23 +0100 Subject: [PATCH 2/2] precautionary handle capital case also for the CSP header --- extension/src/background.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension/src/background.ts b/extension/src/background.ts index 749334b7..a2c6298a 100644 --- a/extension/src/background.ts +++ b/extension/src/background.ts @@ -23,6 +23,8 @@ const updateRule = () => { { header: 'X-Frame-Options', operation: 'remove' }, // @ts-expect-error @types/chrome has not been updated for Chrome Extensions Manifest V3 { header: 'content-security-policy', operation: 'remove' }, + // @ts-expect-error @types/chrome has not been updated for Chrome Extensions Manifest V3 + { header: 'Content-Security-Policy', operation: 'remove' }, ], }, condition: {