Skip to content

Commit

Permalink
Uops :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
sacenox committed Jul 7, 2011
1 parent 3d0fa46 commit b916e65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node.js
Expand Up @@ -52,7 +52,8 @@ var routes = function (app) {
res.end("Not allowed");

// control cross domain using CORS (http://enable-cors.org/)
req.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader("Access-Control-Allow-Headers", "X-Requested-With");

next(); // let the static server do the rest
});
Expand Down

0 comments on commit b916e65

Please sign in to comment.