jquery ajax call fails with 401 unauthorized
问题 I have a jquery ajax POST to a code-behind webmethod. In that webmethod i do a HttpWebRequest to a third party web api service that returns json. Even though the httpwebrequest works fine, a popup appears in the browser asking me to enter credentials (authentication required). On my machine this works well, however when deployed it doesn't except if there is no data returned from the httpwebrequest call. The jquery call: function serverCall(httpMethod, pageName, methodName, inputData,