Commit 6ca1948
chore: relax COOP on preview deploys (#7825)
## Summary
- Sets `Cross-Origin-Opener-Policy` to `unsafe-none` for non-production
Vercel deployments.
- Keeps production on `same-origin-allow-popups`.
## Why
Google Tag Assistant preview can lose its cross-origin opener/debug
connection when the preview page sends a stricter COOP header. This
branch gives us an isolated Vercel preview URL to verify whether
relaxing COOP fixes the Tag Assistant connection without changing the
original captcha analytics PR branch.
## Preview
-
https://swap-dev-git-agent-gtm-tag-assistant-coop-preview-cowswap-dev.vercel.app/?gtm_debug=x
- Verified response header: `cross-origin-opener-policy: unsafe-none`
## Checks
- `pnpm exec prettier --check apps/cowswap-frontend/vercel.ts`
- `pnpm exec eslint apps/cowswap-frontend/vercel.ts`
- `pnpm exec tsc --noEmit --pretty false --skipLibCheck
--moduleResolution node16 --module Node16 --target ES2022
apps/cowswap-frontend/vercel.ts`
- `curl -sI
'https://swap-dev-git-agent-gtm-tag-assistant-coop-preview-cowswap-dev.vercel.app/?gtm_debug=x'`1 parent 33eaca1 commit 6ca1948
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
0 commit comments