Skip to content
Snippets Groups Projects
Commit 2b56d73c authored by Moreau Elise's avatar Moreau Elise
Browse files

[server] fix : allow methods access

parent 4516f7d8
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ app.use(express.json());
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "*");
res.header("Access-Control-Allow-Methods", "POST, GET, PUT, DELETE");
next();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment