Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The current state of standardizing the <a href="http://www.w3.org/TR/XMLHttpRequest/" rel="noreferrer">XMLHttpRequest API</a> does only restrict the access to the <em>Set-Cookie</em> and <em>Set-Cookie2</em> header fields:</p> <blockquote> <p><strong><em>client</em>.getAllResponseHeaders()</strong></p> <p>Returns all headers from the response, with the exception of those whose field name is <code>Set-Cookie</code> or <code>Set-Cookie2</code>.</p> </blockquote> <p>Any other header field should be returned.</p> <p>But as you’re doing a cross-origin request, the browser needs to implement <a href="http://www.w3.org/TR/XMLHttpRequest2/" rel="noreferrer">XMLHttpRequest Level 2</a> as the original XMLHttpRequest does only allow same-origin requests:</p> <blockquote> <p>The XMLHttpRequest Level 2 specification enhances the XMLHttpRequest object with new features, such as cross-origin requests […]</p> </blockquote> <p>There you can read that the “<a href="http://www.w3.org/TR/cors/" rel="noreferrer">Cross-Origin Resource Sharing specification</a> filters the headers that filters the headers that are exposed by <a href="http://www.w3.org/TR/XMLHttpRequest2/#the-getallresponseheaders-method" rel="noreferrer">getResponseHeader()</a> for non <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#same-origin" rel="noreferrer">same-origin</a> requests.”. And that specification forbids access to any response header field other except the <a href="http://www.w3.org/TR/cors/#simple-response-header" rel="noreferrer">simple response header fields</a> (i.e. <em>Cache-Control</em>, <em>Content-Language</em>, <em>Content-Type</em>, <em>Expires</em>, <em>Last-Modified</em>, and <em>Pragma</em>):</p> <blockquote> <p>User agents must filter out all response headers other than those that are a simple response header […]</p> <p>E.g. the <code>getResponseHeader()</code> method of XMLHttpRequest will therefore not expose any header not indicated above.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload