[SOLVED] $.ajax header is different

I am doing a cross domain ajax call with jQuery’s $.ajax. I do have Access-Control-Allow-Origin and Access-Control-Allow-Methods set at the server so those are good. I do get the response I needed. However, some data is stored in the HTTP Header and I am getting a different result when using EXE Output compared to the normal browser.

Just as extra info, I am testing the Chromium browser. So far all I get is

Content-Type: text/html
Cache-Control: must-revalidate, post-check=0, pre-check=0
Expires: 0

But it should be longer than that…

Hahaha… laughing at myself. This is not EXEOutput’s fault. I am doing cross-domain Ajax and it appears that I was missing some HTTP header settings on my servers. I needed…

		header('Access-Control-Allow-Origin: *');
		header("Access-Control-Allow-Methods: POST, GET");		
		header('Custom-Header: Own-Data');		
		header('Access-Control-Expose-Headers: Custom-Header');  

It happen some times :wink:

It would be a good idea to put (SOLVED) in the subject by editing the title in your first post if this problem is resolved. :slight_smile: