Files
cloud-host/backend
keyhan e53fc8e2ff fix(config): handle comma-separated FRONTEND_URL for domains and CORS
FRONTEND_URL may hold a list of origins (e.g. CORS needs both
panel.abrban.com and abrban.com). The domain resolvers ran new URL()
on the whole string, so new URL('https://a,https://b').hostname became
"a,https" and leaked into ingress hosts, which k8s then rejected with
the generic "HTTP request failed" surfaced in the UI. CORS likewise
never split the list, so the second origin never matched.

Parse only the first URL for domain/preview-root resolution, and split
the list into an array for enableCors.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 11:24:35 +03:30
..
2026-04-05 15:22:01 +03:30
2026-04-05 15:22:01 +03:30
2026-04-05 15:22:01 +03:30