Skip to content

CORS headers and localhost testing #27

@zeroasterisk

Description

@zeroasterisk

as suggested in #7 by @hiddentao here is a means of getting CORS header into Meteor...

I managed to get the Phonegap dev app connecting to my localhost Meteor app. I got CORS working in Meteor with the following server code:

WebApp.rawConnectHandlers.use("/",
  function(req, res, next) {
    res.setHeader("Access-Control-Allow-Origin", "*");
    next();
  }
);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions