[nodejs] Re: Forbidden response for request from Apache to node.js server

2013-04-17 Thread Andrey
You need to explicitly allow '127.0.0.1:3000/connect' to be accessed from 'localhost:8080' by serving CORS headers in your node.js application. See http://en.wikipedia.org/wiki/Cross-origin_resource_sharing On Wednesday, 17 April 2013 12:21:25 UTC+10, soewij wrote: Hello, I'm new to node.js.

[nodejs] Re: Forbidden response for request from Apache to node.js server

2013-04-17 Thread soewij
Thank you Andrey, I follow your suggestion, then implement fix from enable-cors.org. Adding this, app.all('/', function(req, res, next) { res.header(Access-Control-Allow-Origin, *); res.header(Access-Control-Allow-Headers, X-Requested-With); next(); }); I also fix a bug in my code, to add