Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

whats the official way to open cors in feather ? #536

Closed
2 tasks
PManager1 opened this issue Jun 30, 2017 · 3 comments
Closed
2 tasks

whats the official way to open cors in feather ? #536

PManager1 opened this issue Jun 30, 2017 · 3 comments

Comments

@PManager1
Copy link

whats the official way to open cors in feather ?
I get this error when i try to ping feahterjs server.

image

Steps to reproduce

(First please check that this issue is not already solved as described
here
)

  • Tell us what broke. The more detailed the better.
  • If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc.

Expected behavior

Tell us what should happen

Actual behavior

Tell us what happens instead

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):

NodeJS version:

Operating System:

Browser Version:

React Native Version:

Module Loader:

@marshallswain
Copy link
Member

You can just use the CORS middleware: https://github.com/expressjs/cors, which works for feathers-rest. CORS is not relevant for feathers-socketio.

@PManager1
Copy link
Author

thanks @marshallswain for the reply, but do you think this is a CORS error ?
I'm using React NAtive expo.
I'm not sure sure if its a CORS issue but it should be.

@marshallswain
Copy link
Member

There's not enough visible information to figure it out. "Unhandled promise" might be giving a clue there, but it's really not enough to know.

@daffl daffl closed this as completed Jul 4, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants