Webservice called twice with jquery ajax function

I am using the $ .ajax function in jquery to make a call to the asmx service. When I look at the requests from the violinist, I see two requests for every call I make. One has a text / html content type which of course returns a 401 unauthorized status, and the other has the correct content type and returns the correct data. Can anyone tell me why this is being done and how can I fix it or if it needs fixing?

0


source to share


1 answer


This is fine if you have anonymous requests turned off (you may have turned on Windows authentication). 401 is a problem with prompting for credentials.



+3


source







All Articles