Skip to content

Commit

Permalink
fix safe embed not working (#269)
Browse files Browse the repository at this point in the history
* copy config from mondo to fix safe embed not working

* woops
  • Loading branch information
aaronmgdr authored Nov 25, 2024
1 parent 9c06477 commit 19a7436
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/** @type {import('next').NextConfig} */
const webpack = require('webpack');

const FRAME_SRC_HOSTS = [
'https://*.walletconnect.com',
'https://*.walletconnect.org',
'https://app.safe.global',
];

const nextConfig = {
reactStrictMode: false,
swcMinify: false,
Expand All @@ -17,11 +23,19 @@ const nextConfig = {
async headers() {
return [
{
source: '/:path*',
source: '/(.*)',
headers: [
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
{
key: 'X-Frame-Options',
value: 'DENY',
value: `ALLOW-FROM ${FRAME_SRC_HOSTS.join(' ')}`,
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
],
},
Expand Down

0 comments on commit 19a7436

Please sign in to comment.