fix: add admin.prosapp.co to CORS allowed origins
This commit is contained in:
+6
-1
@@ -10,7 +10,12 @@ async function bootstrap() {
|
|||||||
const logger = new Logger('Bootstrap');
|
const logger = new Logger('Bootstrap');
|
||||||
|
|
||||||
app.enableCors({
|
app.enableCors({
|
||||||
origin: ['http://localhost:3000', 'http://localhost:5173', 'https://app.prosapp.co'],
|
origin: [
|
||||||
|
'http://localhost:3000',
|
||||||
|
'http://localhost:5173',
|
||||||
|
'https://app.prosapp.co',
|
||||||
|
'https://admin.prosapp.co',
|
||||||
|
],
|
||||||
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user