Can someone help me with this issue, i'm using Braintree webhook, which is sending post data to my Magento 2 controller route, but from some reason, it always redirects me to home page, giving me 302 response, and i'm unable to receive post from webhook and deal with it accordingly. I'm using apache and .htaccess but every rule that i have put in there just gives me to many redirects error.


is it custome Magento 2 controller route? is it front-end route? Did you check rewrite table?

make sure rout ID and frontName are same. Don't know why but this way it works more stable.

<route id="fooid" frontName="fooid">
  • Yes, it is custom front-end controller route. And yes, i did check rewrite table, there is no such rule in there, basically this is happening when i try to do post request on this route /webhooks it redirects me to / with 302 response – ilija bradas Mar 3 '20 at 14:18
  • updates my answer – AlexanderPop Mar 3 '20 at 22:09

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.