Skip to content

Commit dced0f5

Browse files
ralyodioclaude
andcommitted
Allow PairUX to be iframed inside the TronBrowser extension
Drop X-Frame-Options: DENY and set CSP frame-ancestors * so the PairUX web app can be embedded in the extension's Chat → PairUX tab. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0b39d6f commit dced0f5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎apps/web/next.config.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ const nextConfig: NextConfig = {
3636
{
3737
source: '/(.*)',
3838
headers: [
39-
{
40-
key: 'X-Frame-Options',
41-
value: 'DENY',
42-
},
39+
// X-Frame-Options intentionally omitted so PairUX can be embedded as
40+
// an iframe inside the TronBrowser extension (Chat → PairUX tab).
41+
// Framing is governed by the CSP frame-ancestors directive below.
4342
{
4443
key: 'X-Content-Type-Options',
4544
value: 'nosniff',
@@ -51,7 +50,7 @@ const nextConfig: NextConfig = {
5150
{
5251
key: 'Content-Security-Policy',
5352
value:
54-
"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://crawlproof.com https://datafa.st; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; media-src 'self' blob:; connect-src 'self' https: wss: https://crawlproof.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self';",
53+
"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://crawlproof.com https://datafa.st; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; media-src 'self' blob:; connect-src 'self' https: wss: https://crawlproof.com; frame-ancestors *; base-uri 'self'; form-action 'self';",
5554
},
5655
{
5756
key: 'Strict-Transport-Security',

0 commit comments

Comments
 (0)