Issue Type: Bug Bug
Affects Versions: 1.0.1
Assignee: Unassigned
Attachments: CORS_AeroGear-js.png
Created: 18/Jun/13 11:36 AM
Description:

I executed some CORS tests from Mozilla Firefox v21.0 and received the Error: "jqXHR.getResponseHeader(..) is null aerogear.js line 605" when testing the weblinking (attached screenshot).

However, in my opinion this error is not related to the AeroGear.js.

I managed to overcome this issue in Firefox by adding an extra header to the service response which sets a server white-list headers that browsers are allowed to access:

Access-Control-Expose-Headers: Link

The problem is that it still fails on the Android emulator browser.

The default header tests were also failing in Firefox and passed after adding the following header in the Response headers:

Access-Control-Expose-Headers: next,previous

But on the Android emulator the header tests are failing as well. I captured the requests using a proxy between the emulator and the REST service and found that the constructed URLs for next and previous calls are wrong. This happens because the custom response headers cannot be read.

In conclusion, I think that the Access-Control-Expose-Headers header is not supported by the Android browser and for that reason the CORS tests are failing. There is a relevant open issue [1] in the Android project.

[1]: http://code.google.com/p/android/issues/detail?id=56726

Project: AeroGear JavaScript
Priority: Major Major
Reporter: Tolis Emmanouilidis
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira