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

OPTIONS request does not redirect to response location or return response #62

Open
ValeryIvanov opened this issue Jun 30, 2016 · 0 comments

Comments

@ValeryIvanov
Copy link

So I have set up a generic response like so

< @status 302
< @header Location: http://localhost:3000/mock_data/#{id}/user.do

and in mock_data folder I have folder with customer id for example 123 and there is real response user.do with json data.

Now if I make a ajax request with jquery, this setup works fine in Chrome. First GET request 302 is responded with location header and after that second GET request is made and json response is returned.

If I repeat same thing in Firefox, then first request is the same as with Chrome but after that OPTIONS request is made and no response is added on which request is unsuccessful in javascript code since no response was received.

Why does this not work with Firefox? How can I make Firefox behave like Chrome without editing my code? Can this be done with easymock setup?

@ValeryIvanov ValeryIvanov changed the title OPTIONS request does not return redirect or return response OPTIONS request does not redirect to response location or return response Jun 30, 2016
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