title: Jquery POST giving 403 forbidden error in spring mvc
body: <p>I want to make a ajax call using $.POST. But I am getting 403 error. But GET works perfectly fine. My code is:</p>
  
  <pre><code>var url = "/xyz/abc/subscribe?name="+name;
  $.post(url, function(data){
      alert(data);
  });
  </code></pre>
  
  <p>The controller code is :</p>
  
  <pre><code>@RequestMapping(value = "/xyz/abc/subscribe", method = RequestMethod.POST)
  public @ResponseBody
      String subscribe(@RequestParam("name") String name)
          throws Exception {
      String message = "TESTING";
      return message;
  }
  </code></pre>
  
  <p>But I'm getting a 403 error.</p>