feat: enhance CORS handling to support dynamic loopback origins and update trusted origins logic

This commit is contained in:
2026-06-12 03:37:36 -07:00
parent c93010acab
commit 8b32529749
6 changed files with 109 additions and 6 deletions

View File

@@ -20,7 +20,7 @@
"vars": {
"NODE_ENV": "production",
"BETTER_AUTH_URL": "https://cfw-auth.bowong.cc",
"TRUSTED_ORIGINS": "https://mixvideo.bowong.cc,https://admin.mixvideo.bowong.cc,https://app.ad1dollar.com,https://web.bowong.cc",
"TRUSTED_ORIGINS": "https://mixvideo.bowong.cc,https://admin.mixvideo.bowong.cc,https://app.ad1dollar.com,https://web.bowong.cc,https://cfw-gateway.bowong.cc,http://localhost,http://127.0.0.1",
"MAIL_PROVIDER": "resend",
"MAIL_FROM": "support@bowong.ai",
"CAPTCHA_PROVIDER": "cloudflare-turnstile",