Jquery POST giving 403 forbidden error in spring mvc

后端 未结 5 1853
余生分开走
余生分开走 2020-12-14 01:41

I want to make a ajax call using $.POST. But I am getting 403 error. But GET works perfectly fine. My code is:

var url = \"/xyz/abc/subscribe?name=\"+name;
$         


        
5条回答
  •  猫巷女王i
    2020-12-14 02:13

    You're trying to make a POST request to a REST endpoint you're not authorized to. Either your session has become invalid, or the user you're logging in as doesn't have authority like @geoand already pointed out.

提交回复
热议问题