diff --git a/backend/index.js b/backend/index.js index 3548ff4..2f1cefd 100644 --- a/backend/index.js +++ b/backend/index.js @@ -38,7 +38,7 @@ app.use( methods: DEFAULT_ALLOWED_METHODS, }), ); -app.options('*', cors()); +// app.options('*', cors()); app.use(requestLogger); app.use('/', mainRouter); diff --git a/backend/utils/corsSettings.js b/backend/utils/corsSettings.js index 6fc74ac..8cc7a28 100644 --- a/backend/utils/corsSettings.js +++ b/backend/utils/corsSettings.js @@ -5,7 +5,7 @@ */ // add all registered URLs of the project to 'allowedCors' later -const allowedCors = ['http://localhost:3000', '*']; +const allowedCors = ['https://wtwr.students.nomoredomainssbs.ru', 'http://localhost:3000', '*']; const DEFAULT_ALLOWED_METHODS = 'GET,HEAD,PUT,PATCH,POST,DELETE'; module.exports = {