SES-2043 : Check for JSONP before Accept to work with Chrome/Angular
Peter Ansell
Branch: SES-2043
SES-2043
Branch: 2.7.x
2.7.x
Merged
#269 · Created  · Last updated
Merged pull request
Merged in SES-2043 (pull request #269)
028a7cf·Author: Peter Ansell·Closed by: Peter Ansell·2014-04-14
Description
Chrome, with Angular at least, seems to send Accept / for JSONP requests instead of the typical "application/javascript" and hence the callback parameter needs to be checked before the Accept header to be successful.
Chrome, with Angular at least, seems to send Accept / for JSONP requests instead of the typical "application/javascript" and hence the callback parameter needs to be checked before the Accept header to be successful.