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 API #17

Closed
de-juve opened this issue Jan 12, 2017 · 1 comment
Closed

CORS API #17

de-juve opened this issue Jan 12, 2017 · 1 comment

Comments

@de-juve
Copy link

de-juve commented Jan 12, 2017

Hello brocaar,
I want to write my own lora-app-server that communicate with your on JSON REST API. When I send an ajax-request from my site, I get response
"XMLHttpRequest cannot load https://a.b.c.d:8080/api/node?limit=25&offset=0. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://a.b.c.d:3001' is therefore not allowed access. The response had HTTP status code 405."
I did not find the setting for cross-domain requests interaction. Could you add it?

@de-juve
Copy link
Author

de-juve commented Jan 18, 2017

Solution: use proxy on nodejs, or location features for nginx

@de-juve de-juve closed this as completed Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant