CORS xmlhttprequest HEAD method

When requesting header data using HEAD method with CORS object, it returns null.

getAllResponseHeaders() -> return null.

How to setup php headers in the other site so that I can retrieve header data>

p.s.: this is not within the same domain. it's a cross origin resource sharing

Thank you


I've noticed this behavior in Firefox (3.6.13); getAllResponseHeaders() returns nothing. In Chrome/Safari, getAllResponseHeaders() only returns simple response headers (as defined in the spec None of these browsers respect the Access-Control-Expose-Headers header.

Since the last answer to this question, modern browsers respect the Access-Control-Expose-Headers header.

This bug is fixed in up to date versions of IE (11) and Chrome (43) and Firefox (39).

Need Your Help

Couldn't install git-flow on ubuntu 10.04

git ubuntu ubuntu-10.04 git-flow

I am trying to install git-flow on Ubuntu 10.04 but I am getting the following error:

c4droid: Makefile and cstudio

c++ gcc cstdio

I´m doing some tests with c4droid on my phone (a galaxy s3 mini).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.