Closed andrewtamura closed 8 years ago
The current instructions say this
WebApp.connectHandlers.use(function(req, res, next) { res.setHeader("Access-Control-Allow-Origin", '*'); return next(); });
However, this line does not set the headers for Meteor's CSS and JS files. The code should be updated to
WebApp.rawConnectHandlers.use(function(req, res, next) { res.setHeader("Access-Control-Allow-Origin", '*'); return next(); });
Notice WebApp.rawConnectHandlers vs WebApp.connectHandlers. This has been testing on Meteor v1.2.1
WebApp.rawConnectHandlers
WebApp.connectHandlers
Fixed in https://github.com/monsur/enable-cors.org/pull/113
The current instructions say this
However, this line does not set the headers for Meteor's CSS and JS files. The code should be updated to
Notice
WebApp.rawConnectHandlers
vsWebApp.connectHandlers
. This has been testing on Meteor v1.2.1