I'm using backbone accessing REST api implemented with openrasta. Backbone sends HTTP OPTIONS request before sending PUT request to create object(suppose due to cross domain), and gets 405 Method Not Allowed.
I have a feeling that OR should serve such requests following from it's configuration, and 405 is result of error in my OR configuration, is it so or I neeed to handle HTTP OPTIONS explicitly?
request sample:
Request Method:
OPTIONS
Status Code:
![405 Method Not Allowed]()
405 Method Not Allowed
- Request Headersview source
Accept:
*/*
Accept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:
gzip,deflate,sdch
Accept-Language:
en-US,en;q=0.8
Access-Control-Request-Headers:
origin, content-type, accept
Access-Control-Request-Method:
PUT
Connection:
keep-alive
Host:
Origin:
Referer:
User-Agent:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
- Response Headersview source
Access-Control-Allow-Origin:
*
Content-Length:
0
Date:
Thu, 27 Sep 2012 11:23:29 GMT
Server:
Microsoft-HTTPAPI/2.0