POST request to Spring server returns 403 forbidden
I have set up my spring server to respond to a POST request containing a Message object as: @RequestMapping(value = "/signup", method = RequestMethod.POST, consumes = "application/json") public @ResponseBody Message signUp(@RequestBody Message message) { logger.info("Accessing protected resource"); return new Message(100, "Congratulations!", "You have signed up. msg:"+message.toString()); } The Android client is set up to send the request as: @Override protected Message doInBackground(Void... params) { // TODO Auto-generated method stub final String url = "http://10.0.2.2:8080/signup"; HttpHea
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.