mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-27 17:38:51 +05:00
fix
This commit is contained in:
@@ -105,12 +105,7 @@ const swaggerDocs = swaggerJsdoc(swaggerOptions);
|
|||||||
|
|
||||||
// CORS configuration
|
// CORS configuration
|
||||||
const corsOptions = {
|
const corsOptions = {
|
||||||
origin: [
|
origin: '*',
|
||||||
'http://localhost:3000',
|
|
||||||
'https://neo-movies.vercel.app',
|
|
||||||
'https://neomovies.sofron.ru',
|
|
||||||
/\.vercel\.app$/
|
|
||||||
],
|
|
||||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||||
allowedHeaders: ['Content-Type', 'Authorization'],
|
allowedHeaders: ['Content-Type', 'Authorization'],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user