0

I'm developing a module for the payment method.

So I need to revise post requests with pay results but all Post requests send to my controller been forward to the home page.

If request type is Get, my controller can revise request.

I try to sent Post request to magento2 another URL, still been forward to the home page. enter image description here

2
  • Are you getting any error like "Request validation failed" or "CSRF token mismatch" in the error log? – Pratik Navapara Apr 28 '20 at 10:22
  • No, never get error .just http cod 302 ,and return home page – keke996 Apr 29 '20 at 1:48
0

magento2.3 problem.

Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint

Thanks this answer help me to revice POST request in controller.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.