###############################################################
Setting Ext.Ajax.useDefaultXhrHeader = true; produces the following wrong response already for the initial get:
192.168.174.129.53029-192.168.173.020.08182: OPTIONS /graphs/neo4j/vertices?page=1&start=0&limit=25 HTTP/1.1
Host: mbp266:8182
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:14.0) Gecko/20100101 Firefox/14.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Origin: http://localhost:8888
Access-Control-Request-Method: GET
Access-Control-Request-Headers: x-requested-with
192.168.173.020.08182-192.168.174.129.53029: HTTP/1.1 204 No Content
server: grizzly/2.1.2
Access-Control-Allow-Methods: GET,POST
Access-Control-Allow-Headers: *
Access-Control-Max-Age: 1728000
Access-Control-Allow-Origin: *
Date: Tue, 21 Aug 2012 10:43:18 GMT
###############################################################
On the ExtJs side I crawled through the source code for any other header modifications made but without success.
The whole preflighting seems to be done inside the browser.
Regards,
Michl
Here's a trace of the successful traffic:
###############################################################
192.168.174.129.53711-192.168.173.020.08182: OPTIONS /graphs/neo4j/vertices?page=1&start=0&limit=25 HTTP/1.1
Host: mbp266:8182
Access-Control-Request-Method: GET
Origin: http://localhost:8888
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6 Safari/533.22.3
Referer: http://localhost:8888/graphdb/extClient/index.html
Access-Control-Request-Headers: X-Requested-With
Accept: */*
Accept-Language: de-de
Accept-Encoding: gzip, deflate
Content-Length: 0
Connection: keep-alive
192.168.173.020.08182-192.168.174.129.53711: HTTP/1.1 200 OK
Content-Type: text/html; charset=iso-8859-1
server: grizzly/2.1.2
Access-Control-Allow-Methods: OPTIONS,GET,POST
Access-Control-Allow-Headers: x-requested-with
Access-Control-Max-Age: 1728000
Access-Control-Allow-Origin: *
Date: Tue, 21 Aug 2012 14:54:48 GMT
Transfer-Encoding: chunked
0
192.168.174.129.53711-192.168.173.020.08182: GET /graphs/neo4j/vertices?page=1&start=0&limit=25 HTTP/1.1
Host: mbp266:8182
Origin: http://localhost:8888
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6 Safari/533.22.3
Referer: http://localhost:8888/graphdb/extClient/index.html
Accept: */*
Accept-Language: de-de
Accept-Encoding: gzip, deflate
Connection: keep-alive
192.168.173.020.08182-192.168.174.129.53711: HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
server: grizzly/2.1.2
Access-Control-Allow-Origin: *
Date: Tue, 21 Aug 2012 14:54:49 GMT
Transfer-Encoding: chunked
4000
{"version":"2.2.0-SNAPSHOT","results":[{"_id":0,"_type":"vertex"}....
###############################################################
Thanks for your help! Regards,
Michl