Hi Rob,

I tried myself yesterday but with no luck...
I added this on the client-side:

.config(function($httpProvider){
 $httpProvider.defaults.headers.common['Content-Type'] = 'text/plain; 
charset=utf-8';
 $httpProvider.defaults.headers.common.Accept = 'text/plain';
 $httpProvider.defaults.useXDomain = true;
 delete $httpProvider.defaults.headers.common['X-Requested-With'];
});


But still OPTIONS preflights...
I think that is because of the Authorization header I'm sending for my 
JWT...

Authorization is the reason not to switch to JSONP... 


Am Montag, 26. Januar 2015 16:52:53 UTC+1 schrieb Rob Koberg:
>
> I haven't tried yet. 
>
> On Mon, Jan 26, 2015 at 1:51 AM, Jörg Zimmer <[email protected] 
> <javascript:>> wrote: 
> > Hi Rob, 
> > 
> > I'm curious to know if you were successful :) 
> > 
> > 
> > 
> > 
> > Am Samstag, 24. Januar 2015 03:18:15 UTC+1 schrieb Rob Koberg: 
> >> 
> >> I got a little farther, where it is now working in desktop safari in 
> iOS 
> >> emulation mode when using the server. I thought maybe canceling the 
> >> preflight options request would do the trick, but still not working on 
> iPad 
> >> iOS8. The previous request was for JSON which triggers the preflight 
> OPTIONS 
> >> request. If you request text/plain (add Accepts header) and return 
> >> text/plain it won't trigger the preflight request. 
> >> 
> >> Tomorrow I think I will try straight jQuery.ajax to see if this is some 
> >> kind of bug in Angular itself. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "AngularJS" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/angular. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to