fix(checkout): add www and variant subdomains to returnUrl allowlist (#2737)

Sentry K7: 14 events. Users on www.worldmonitor.app hit "Invalid
returnUrl" because the allowlist only had the bare domain.
Requires npx convex deploy.
This commit is contained in:
Elie Habib
2026-04-05 19:57:21 +04:00
committed by GitHub
parent aadda3d181
commit 8a4e29d4fb

View File

@@ -50,7 +50,12 @@ async function _createCheckoutSession(
const allowedOrigins = new Set([
"https://worldmonitor.app",
"https://www.worldmonitor.app",
"https://app.worldmonitor.app",
"https://tech.worldmonitor.app",
"https://finance.worldmonitor.app",
"https://commodity.worldmonitor.app",
"https://happy.worldmonitor.app",
new URL(siteUrl).origin,
]);
if (!allowedOrigins.has(parsedReturnUrl.origin)) {