W3C home > Mailing lists > Public > public-webapi@w3.org > April 2008

[XMLHttpRequest2] response headers for cross-site requests

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 08 Apr 2008 12:08:59 +0200
To: "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <op.t9aeg9xk64w2qv@annevk-t60.oslo.opera.com>

Currently XMLHttpRequest Level 2 has restrictions on getting response  
headers when doing a cross-site request. I have a feeling these may be an  
artifact of the slightly older model.

getAllResponseHeaders() returns the empty string currently.

getResponseHeader(header) returns null unless header is one of  
Cache-Control, Content-Language, Content-Type, Expires, Last-Modified,  

I think we should be able to change this. (Though we can't expose  
Set-Cookie and Set-Cookie2 obviously.)

Any thoughts?

(I bbc'ed the WAF WG list as there might be some people there interested  
in this. Please reply to the Web API WG list. I'll be happy when this work  
ends up in the same group soonish...)

Anne van Kesteren
Received on Tuesday, 8 April 2008 10:09:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:10:00 UTC