http://blog.weareon.net/calling-wcf-rest-service-from-jquery-causes-405-method-not-allowed/
After a bit of head scratching, I found that the above solution required an addition to support an Authorization header.
So from the above blog post, the following line :-
HttpContext.Current.Response.AddHeader(
"Access-Control-Allow-Headers"
,
"Content-Type, Accept"
);
Needed to read :-
HttpContext.Current.Response.AddHeader(
"Access-Control-Allow-Headers"
,
"Content-Type, Accept,
Authorization"
);
No comments:
Post a Comment