on 2018 Jun 11 10:44 PM
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.
I could solve this issue by adding the http-methods to the request mapping annotation:
@RequestMapping(value ="example" , method = {RequestMethod.GET, RequestMethod.POST})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.