W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: how to implement the c# HttpListener with the CORS protocol

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 19 Jun 2011 15:28:26 +0200
To: public-webapps@w3.org, "Paula Decker" <paulad@rmi.net>
Message-ID: <op.vxbrpoeg64w2qv@anne-van-kesterens-macbook-pro.local>
On Thu, 16 Jun 2011 21:14:31 +0200, Paula Decker <paulad@rmi.net> wrote:
> The problem is that the HttpListener object has a method, getContext  
> where it can receive a request.  Can I assume that the header has been  
> set in this request?  If so, I can return Access-Control-Allow-Origin  
> back.  At this point, does the requestor need to send me a new request  
> to contain the actual request...how does it work?

No, you include the header in the resource requested. Assuming this is for  
a simple cross-origin request.  
http://dev.w3.org/2006/waf/access-control/#resource-requests has details  
for server implementors.  
http://dev.w3.org/2006/waf/access-control/#introduction has some examples  
in the end.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Sunday, 19 June 2011 13:28:57 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT