You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
So I have set up a generic response like so
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?
The text was updated successfully, but these errors were encountered: