salix/loopback/server/middleware/cors.js

6 lines
95 B
JavaScript

let cors = require('cors');
module.exports = function() {
return cors({origin: true});
};