Skip to content

CORS #650

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

Open
Done-can opened this issue Apr 14, 2020 · 2 comments
Open

CORS #650

Done-can opened this issue Apr 14, 2020 · 2 comments

Comments

@Done-can
Copy link

The sql-router can't get POST requests from Axios because of CORS denial.
Using the cors module via "require("cors")" works fine.

@dgaubert
Copy link
Contributor

Hi @Done-can!

Thanks for reporting the issue. Could you describe your use case?. Do you have a running instance of SQL-API? It's the open-source version, isn't it?

@Done-can
Copy link
Author

Using the open-source version, yeah. Developing a service in Nodejs that sends POST requests to the sql-api with axios module. The api denies the request due to CORS violation, while the api allow CORS with a middleware written in the api.
I'm familiar with the CORS module so I changed it, and the POST requests work.

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

2 participants