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 回答1: 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 http://www