cors
This commit is contained in:
parent
fe534a7875
commit
e43680f798
@ -8,6 +8,7 @@ async function bootstrap() {
|
|||||||
// Build allowed origins list from environment variables
|
// Build allowed origins list from environment variables
|
||||||
const allowedOrigins = [
|
const allowedOrigins = [
|
||||||
process.env.FRONTEND_URL ?? 'http://localhost:5173',
|
process.env.FRONTEND_URL ?? 'http://localhost:5173',
|
||||||
|
'https://placebo.mk', // Production domain
|
||||||
'https://www.placebo.mk', // Also allow www subdomain
|
'https://www.placebo.mk', // Also allow www subdomain
|
||||||
process.env.PWA_URL ?? 'http://localhost:5174',
|
process.env.PWA_URL ?? 'http://localhost:5174',
|
||||||
process.env.STRAPI_URL ?? 'http://localhost:1337',
|
process.env.STRAPI_URL ?? 'http://localhost:1337',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user