cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Status 405 - Request method 'POST' not supported while Login

Former Member
0 Kudos
5,144

Hi ,

I have recently upgraded from Hybris 6.0 to Hybris 6.6. I am facing issues with ajax POST calls, while GET calls are working fine.

The post calls are giving error as " 405 Method Not Allowed". The request headers are properly set to POST in the controller. I am unable to perform login operation as it gives me the same issue.

Is this anything to do with Spring security config of the store front or CSRF token?

Please guide.

View Entire Topic
BabSeb
Newcomer
0 Kudos

I could solve this issue by adding the http-methods to the request mapping annotation:

@RequestMapping(value ="example" , method = {RequestMethod.GET, RequestMethod.POST})