Welcome! Log In Create A New Profile

Advanced

Does nginx support OPTIONS request method ?

August 20, 2010 03:51AM
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
Subject Author Posted

Does nginx support OPTIONS request method ?

joro August 20, 2010 03:51AM

Re: Does nginx support OPTIONS request method ?

Piotr Sikora August 20, 2010 04:40AM

Re: Does nginx support OPTIONS request method ?

joro August 20, 2010 04:45AM

Re: Does nginx support OPTIONS request method ?

Piotr Sikora August 20, 2010 05:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready