Skip to content

Commit

Permalink
закомментировала мидлвару cors
Browse files Browse the repository at this point in the history
  • Loading branch information
olesia1205 committed Apr 23, 2023
1 parent a5c1d91 commit c902dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const { celebrate, Joi, errors } = require('celebrate');
const routes = require('./routes');
const { createUser, login } = require('./controllers/users');
const { requestLogger, errorLogger } = require('./middlewares/logger');
const { cors } = require('./middlewares/cors');
// const { cors } = require('./middlewares/cors');

const SERVER_ERROR = http2.constants.HTTP_STATUS_INTERNAL_SERVER_ERROR;

const app = express();

app.use(cors);
// app.use(cors);
app.use(requestLogger);

app.post('/signin', express.json(), celebrate({
Expand Down

0 comments on commit c902dfd

Please sign in to comment.