backend code refactoring

This commit is contained in:
GotPPay
2018-01-13 14:57:41 +01:00
parent ff7e564d2e
commit 7f56a28509
7 changed files with 147 additions and 135 deletions

View File

@@ -0,0 +1,7 @@
module.exports = function (req, res, next) {
res.header ('Access-Control-Allow-Origin', '*');
res.header ('Access-Control-Allow-Headers', 'Origin, Content-Type');
res.header ('Access-Control-Allow-Methods', 'GET, POST, OPTIONS');
res.header ('Access-Control-Allow-Credentials', 'true');
next ();
};