feat(GRO-2425): split CORS_ORIGIN on commas for multiple trusted auth origins #216
Reference in New Issue
Block a user
Delete Branch "feature/GRO-2425-comma-split-cors-origin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GRO-2425 — support multiple trusted auth origins (comma-split CORS_ORIGIN)
Follow-up to GRO-2424.
Changes
src/lib/auth.ts(lines 121, 311): bothtrustedOriginsnow splitCORS_ORIGINon commas instead of wrapping as a single string. SettingCORS_ORIGIN="https://demo.groombook.dev,https://groombook.farh.net"will trust both hosts.UAT_PLAYBOOK.md §4.1: added TC-API-1.27 and TC-API-1.28 for multi-origincallbackURLcoverage.No-regression contract
Single-value
CORS_ORIGINbehaves identically (one-element array after split).BETTER_AUTH_URLstayshttps://demo.groombook.dev(OAuth callback host unchanged).