Skip to content
Permalink
Browse files
credentials testing
  • Loading branch information
caracold committed Apr 23, 2020
1 parent ccc037d commit 115e507f4b57c25f0bfc51df62762e2e7f1be8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 app.js
@@ -20,7 +20,7 @@ app.use(bodyParser.json());

//Middleware setting permissions to avoid browser-related errors
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');
//res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, Authorization');
if (req.method === 'OPTIONS') {
res.header('Access-Control-Allow-Methods', 'GET, POST, PATCH, DELETE');

0 comments on commit 115e507

Please sign in to comment.