fix(picker): fix docs.google.com refused to connect issue (#797)

Co-authored-by: waleedlatif <waleedlatif@waleedlatifs-MacBook-Pro.local>
This commit is contained in:
Waleed Latif
2025-07-26 12:45:44 -07:00
committed by GitHub
parent a251122601
commit 4964495abb

View File

@@ -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',
},
],
},