Does nginx support OPTIONS request method ?

joro nginx-forum at nginx.us
Fri Aug 20 11:51:01 MSD 2010


Hi guys,
I am trying to make a cross-domain ajax request. The problem comes when
i try to POST .
Then Firefox makes "preflighted" request to see if it is OK to go
ahead.
Here is the request :

OPTIONS /publish/?id=123 HTTP/1.1
Host: 10.1.2.50:8002
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8)
Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Origin: http://10.1.2.50
Access-Control-Request-Method: POST


and response :

HTTP/1.1 405 Not Allowed
Server: nginx/0.7.67
Date: Fri, 20 Aug 2010 07:11:52 GMT
Content-Type: text/html
Content-Length: 173
Connection: keep-alive
Allow: GET, POST, PUT, DELETE

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,121635,121635#msg-121635




More information about the nginx mailing list