From 4964495abbed28315546cfd744b979575d65734e Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sat, 26 Jul 2025 12:45:44 -0700 Subject: [PATCH] fix(picker): fix docs.google.com refused to connect issue (#797) Co-authored-by: waleedlatif --- apps/sim/next.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sim/next.config.ts b/apps/sim/next.config.ts index f4de6fa2ed..7e625755e5 100644 --- a/apps/sim/next.config.ts +++ b/apps/sim/next.config.ts @@ -96,8 +96,8 @@ const nextConfig: NextConfig = { ], }, { - // Exclude Vercel internal resources and static assets from strict COEP - source: '/((?!_next|_vercel|api|favicon.ico|w/.*|api/tools/drive).*)', + // Exclude Vercel internal resources and static assets from strict COEP, Google Drive Picker to prevent 'refused to connect' issue + source: '/((?!_next|_vercel|api|favicon.ico|w/.*|workspace/.*|api/tools/drive).*)', headers: [ { key: 'Cross-Origin-Embedder-Policy', @@ -119,7 +119,7 @@ const nextConfig: NextConfig = { }, { key: 'Cross-Origin-Opener-Policy', - value: 'same-origin', + value: 'same-origin-allow-popups', }, ], },