Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JBM to script src #4502

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ const INFURA_IPFS_URLS = [
]

const SCRIPT_SRC = [
'https://*.juicebox.money',
'https://static.hotjar.com',
'https://script.hotjar.com',
'https://cdn.usefathom.com',
'https://juicebox.money', // Trusted host
'https://*.juicebox.money', // Trusted subdomains
'https://static.hotjar.com', // Hotjar analytics
'https://script.hotjar.com', // Hotjar analytics
'https://cdn.usefathom.com', // Fathom analytics
// Not working as unsafe-eval is required for metamask
// `'sha256-kZ9E6/oLrki51Yx03/BugStfFrPlm8hjaFbaokympXo='`, // hotjar
`'unsafe-eval'`, // hotjar
Expand Down Expand Up @@ -70,7 +71,7 @@ const CONNECT_SRC = [
'https://*.supabase.co',
'https://api.ensideas.com',
'https://cloudflare-eth.com',
'https://rpc.sepolia.org/'
'https://rpc.sepolia.org/',
]

const FRAME_ANCESTORS = [
Expand Down Expand Up @@ -177,33 +178,33 @@ const nextConfig = removeImports({
],
},
{
source: "/(.*)",
source: '/(.*)',
headers: [
{
key: "x-vercel-country",
value: "", // Allow this header to pass through
key: 'x-vercel-country',
value: '', // Allow this header to pass through
},
],
},
{
source: "/(.*)",
source: '/(.*)',
headers: [
{
key: "X-Vercel-IP-Country-Region",
value: "", // Allow this header to pass through
key: 'X-Vercel-IP-Country-Region',
value: '', // Allow this header to pass through
},
],
},
{
source: "/(.*)",
source: '/(.*)',
headers: [
{
key: "X-Vercel-IP-City",
value: "", // Allow this header to pass through
key: 'X-Vercel-IP-City',
value: '', // Allow this header to pass through
},
],
},
];
]
},
images: {
remotePatterns: [
Expand Down
Loading