mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 03:22:38 +10:00
cors setup and dev server proxy
This commit is contained in:
@ -59,15 +59,7 @@ async function bootstrap() {
|
||||
}),
|
||||
);
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
// make development easy
|
||||
app.enableCors({
|
||||
origin: ['http://localhost:5173'],
|
||||
credentials: true,
|
||||
});
|
||||
} else {
|
||||
app.enableCors();
|
||||
}
|
||||
app.enableCors();
|
||||
|
||||
app.useGlobalInterceptors(new TransformHttpResponseInterceptor());
|
||||
app.enableShutdownHooks();
|
||||
|
||||
Reference in New Issue
Block a user