-
Notifications
You must be signed in to change notification settings - Fork 58
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
Ajax Query Preflight Failing #3
Comments
Well, there are a couple of options to dealing with cors:
|
Thank you! I will implement cors and give it a go. You mentioned that it
|
If you're using [email protected], you're already using the latest. If not, you'll need to do a little upgrade work... But it's pretty easy, start here: https://github.com/theganyo/swagger-node-runner/releases/tag/v0.6.0. |
I am indeed running 0.6.0. Do I need to install cors or just implement it
|
Actually, if you're running the latest, you don't even need to do that. You just need to make sure the existing fitting is listed for your pipe. The swagger_controllers pipe should look something like this and have "cors" listed as the first item after the error handler...
If you have that, it should automatically route all request through the cors for any of your declared paths. If you have that and it's not working, we'll need to dig deeper to figure out what's happening for you... |
Bummer... I do indeed have that. I detailed my setup and the problem at stack overflow: It seemed odd to me that it wasn't working. Take a look and see if anything comes up. |
Scott, Have you had a chance to look at the comments I posted including the stack http://stackoverflow.com/questions/34016007/swagger-ajax-preflight-options Thanks again! Rusty On Thu, Dec 3, 2015 at 10:51 AM, Scott Ganyo [email protected]
|
Hey Rusty, Sorry I haven't gotten back to this before now. Do you happen to have a project you can share that recreates the issue? I've attempted to recreate myself, but I can't seem to hit whatever it is that you're hitting. |
I am not seeing any examples on how to handle an OPTIONS request sent in during the preflight check of an Ajax query. I have resolved CORS issues but now am receiving the following exception:
It is clear that I need to define an OPTIONS operation... but how... and what is expected? Could you put together a reference OPTIONS operation for an ajax preflight request?
The text was updated successfully, but these errors were encountered: