Skip to content

Commit 13ccacf

Browse files
committed
add "frame-ancestors" rule for WalletConnect CSP policy
1 parent cc4f822 commit 13ccacf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nextjs/csp/policies/walletConnect.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export function walletConnect(): CspDev.DirectiveDescriptor {
1616
'wss://relay.walletconnect.com',
1717
'wss://www.walletlink.org',
1818
],
19+
'frame-ancestors': [
20+
'*.walletconnect.org',
21+
'*.walletconnect.com',
22+
],
1923
'img-src': [
2024
KEY_WORDS.BLOB,
2125
'*.walletconnect.com',

0 commit comments

Comments
 (0)