Skip to content

Commit

Permalink
cors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unfiltered-syrup committed Dec 7, 2023
1 parent 53c725c commit bf32cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back-end/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mongoose

app.use(express.json());
app.use(morgan('dev', { skip: (req, res) => process.env.NODE_ENV === 'test' }));
app.use(cors({ origin: process.env.FRONT_END_DOMAIN, credentials: true }));
app.use(cors({ credentials: true }));
app.use(express.static(STATIC_FOLDER));

const feedbackRoutes = require('./routes/feedback-routes.js');
Expand Down

0 comments on commit bf32cc4

Please sign in to comment.