Question

recently, while implementing Ajax Jquery on one the my site, throw strange 401 UnAuthorised error, the strange thing in it is i am using forms authentication and the user is also logged in, but still its throwing the UnAuthorised error, i am using DNN CMS System

can anyone help me with the above probblem. below is the console from Firebug

http://guitarplayer.com/401Error.png

i am able to post the data, but unauthorised error while returning results.

Was it helpful?

Solution 2

Its done, actually the problem was, i have missed the Class file including web method, but the strange thing was, Ajax Jquery should have replied me with 404 file not found, but instead it throws unauthorised access. anyways thanks guys for helping me

OTHER TIPS

This could be due to your CMS system using CSRF protection. In order to POST, you will need to include CSRF details along with your post.

This same problem occurs in Rails apps. If you use POST without including CSRF information, the session gets reset and the login page is returned. This is a protection mechanism.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top