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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user