mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user