Skip to content

Commit

Permalink
add api domain
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalcaries committed Aug 4, 2022
1 parent 3f1ef1c commit aae7c7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ app.use(
methods: DEFAULT_ALLOWED_METHODS,
}),
);
app.options('*', cors());
// app.options('*', cors());
app.use(requestLogger);

app.use('/', mainRouter);
Expand Down
2 changes: 1 addition & 1 deletion backend/utils/corsSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit aae7c7d

Please sign in to comment.