This commit is contained in:
2025-07-10 22:13:45 +03:00
parent 8a847ef2e6
commit 3e4e4bbd77

View File

@@ -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,