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

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 UTC