davidtinker / grails-cors

Grails plugin to add Cross-Origin Resource Sharing (CORS) headers
38 stars 22 forks source link

Doesn't work in Safari (Mac or iOS) #11

Closed DavidFrahm closed 10 years ago

DavidFrahm commented 11 years ago

This grails-cors plugin seems to work great on Chrome/Firefox/Android, but doesn't work on Safari (Mac and iOS).

Example A jsFiddle: http://jsfiddle.net/davidfrahm/7TQYh/

Example B on test-cors.org: http://client.cors-api.appspot.com/client#?client_method=GET&client_credentials=false&server_url=http%3A%2F%2Ftest.budgetease.com%2Fapi%2Fenvelopes&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote

We first tried v1.1.0, and then also back to 1.0.4 with no impact to this issue.

davidtinker commented 11 years ago

Hmm. We have been using it successfully with Safari for some time. Here is a sample talking to one of our apps:

http://jsfiddle.net/aRneQ/

The call returns a 401 which is correct and the body includes the JSON I expect to see.

Is your app doing something weird with Safari?

DavidFrahm commented 11 years ago

Your jsFiddle link takes me to your copy of my jsFiddle. Can you try the link again?

davidtinker commented 11 years ago

Oops. Here it is: http://jsfiddle.net/Sw6xu/1/

Its just yours with a different URL.