OPTIONS request vs GET in Ajax
Posted
by
user41172
on Server Fault
See other posts from Server Fault
or by user41172
Published on 2010-09-28T15:49:25Z
Indexed on
2012/04/07
17:33 UTC
Read the original article
Hit count: 310
I have a PHP/javascript app that queries and returns info using an ajax request. On every server I've used so far, this works as expected, passing an Ajax GET request to the server and returning json data.
On a new install, the query fails and returns nothing-- I inspected the request and it turns out that rather than passing the query as a GET, the server is passing it as an OPTIONS request. Is there any reason for this? I have no idea why this might happen.
THanks!
© Server Fault or respective owner