W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: [cors] when a preflight goes bad

From: Karl Dubost <karld@opera.com>
Date: Tue, 6 Dec 2011 18:40:27 -0500
Message-Id: <83A8B144-13E9-4B98-8DC2-90F082F780B6@opera.com>
Cc: public-webapps@w3.org, Sergey Beryozkin <sberyozkin@gmail.com>
To: Benson Margulies <bimargulies@gmail.com>

Le 5 déc. 2011 à 10:42, Benson Margulies a écrit :
> For that matter, it occurs to me, even if the entire preflight is a
> success, the status code will still be not found, won't it, if there
> is no other OPTIONS handler for the resource?

What do you mean?
if you send to the server something like 

Host: www.example.com

* If there is a resource defined like in this case
  then the server should return a "200 OK". [1]
* If the server doesn't support the OPTIONS method, 
  then it should return a "405 Method Not Allowed" [2]

But I might miss entirely your point.

[1]: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-17#section-6.2
[2]: http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-17#section-7.4.6

Karl Dubost - http://dev.opera.com/
Developer Relations & Tools, Opera Software
Received on Tuesday, 6 December 2011 23:41:06 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:37 UTC