blob: 80369a83d202a0a022771ca682f101ecaf75044e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
Meteor.startup(() => {
if ( process.env.CORS ) {
// Listen to incoming HTTP requests, can only be used on the server
WebApp.rawConnectHandlers.use(function(req, res, next) {
res.setHeader('Access-Control-Allow-Origin', process.env.CORS);
return next();
});
}
});
|