Skip to content

Commit 4964495

Browse files
waleedlatif1waleedlatif
andauthored
fix(picker): fix docs.google.com refused to connect issue (#797)
Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local>
1 parent a251122 commit 4964495

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/sim/next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ const nextConfig: NextConfig = {
9696
],
9797
},
9898
{
99-
// Exclude Vercel internal resources and static assets from strict COEP
100-
source: '/((?!_next|_vercel|api|favicon.ico|w/.*|api/tools/drive).*)',
99+
// Exclude Vercel internal resources and static assets from strict COEP, Google Drive Picker to prevent 'refused to connect' issue
100+
source: '/((?!_next|_vercel|api|favicon.ico|w/.*|workspace/.*|api/tools/drive).*)',
101101
headers: [
102102
{
103103
key: 'Cross-Origin-Embedder-Policy',
@@ -119,7 +119,7 @@ const nextConfig: NextConfig = {
119119
},
120120
{
121121
key: 'Cross-Origin-Opener-Policy',
122-
value: 'same-origin',
122+
value: 'same-origin-allow-popups',
123123
},
124124
],
125125
},

0 commit comments

Comments
 (0)