fix: add production domain to CORS and update environment

- Add https://litter.psbailey.uk to CORS allowed origins
- Update CORS_ORIGIN in .env to production domain
- Update FRONTEND_URL for email links
- Support both http and https for the domain

Backend needs to be restarted after pulling this change.
This commit is contained in:
2025-11-17 01:43:09 +00:00
parent e6ee6adde5
commit 6c38df7210
2 changed files with 4 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ app.use(cors({
origin: [
'http://localhost:5173',
'http://localhost:5174',
'https://litter.psbailey.uk',
'http://litter.psbailey.uk',
process.env.CORS_ORIGIN || ''
].filter(Boolean),
credentials: true,