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