Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS headers and localhost testing #27

Open
zeroasterisk opened this issue Jul 29, 2014 · 0 comments
Open

CORS headers and localhost testing #27

zeroasterisk opened this issue Jul 29, 2014 · 0 comments
Assignees

Comments

@zeroasterisk
Copy link
Owner

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();
  }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant