additional edit for api refactoring
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
module.exports = function (req, res, next) {
|
module.exports = function (req, res, next) {
|
||||||
res.header ('Access-Control-Allow-Origin', '*');
|
res.header ('Access-Control-Allow-Origin', '*');
|
||||||
res.header ('Access-Control-Allow-Headers', 'Origin, Content-Type');
|
res.header ('Access-Control-Allow-Headers', 'Origin, Content-Type');
|
||||||
res.header ('Access-Control-Allow-Methods', 'GET, POST, OPTIONS');
|
res.header ('Access-Control-Allow-Methods', 'GET, POST, PUT');
|
||||||
res.header ('Access-Control-Allow-Credentials', 'true');
|
res.header ('Access-Control-Allow-Credentials', 'true');
|
||||||
next ();
|
next ();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user