maestro-server/audit-app

View on GitHub
app/core/middlewares/cors.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
'use strict';

module.exports = function () {
    return function (req, res, next) {
      res.header("Access-Control-Allow-Origin", "*");
      res.header('Access-Control-Allow-Methods', "GET,PUT,POST,DELETE,PATCH");
      res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization, Accept-Encoding, Accept-Language");
      next();
    };
};