Hello,
I am writing a JSONP enabled API service with HMAC authentication.
Because of the way JSONP works, the status code information about the request are not available.
WCF's solution to this is to return the status code with the callback request.
callback(data, statusCode);
In 1.7, line 7934, there is this line:
responseContainer = [ response ];
This forces the capabilities of the JSONP implementation to be limited.
My suggestion is:
responseContainer = arguments;
And then change line 7943 from:
window[ jsonpCallback ]( responseContainer[ 0 ] );
To
window[ jsonpCallback ]( responseContainer[ 0 ], responseContainer.slice(1) ); // I forgot the syntax sorry
This would allow for extensive JSONP to be written ontop of the traditional.