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

On Thu, 16 Jun 2011 21:14:31 +0200, Paula Decker <> 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 does it work?

No, you include the header in the resource requested. Assuming this is for  
a simple cross-origin request. has details  
for server implementors. has some examples  
in the end.

Anne van Kesteren

Received on Sunday, 19 June 2011 13:28:57 UTC