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