https://github.com/webgriffe/magento2-open-post-controller
Defines an abstract Magento 2 controller class that disables the built-in form key control
https://github.com/webgriffe/magento2-open-post-controller
Last synced: 9 months ago
JSON representation
Defines an abstract Magento 2 controller class that disables the built-in form key control
- Host: GitHub
- URL: https://github.com/webgriffe/magento2-open-post-controller
- Owner: webgriffe
- Created: 2019-10-07T08:35:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-07T12:31:15.000Z (over 6 years ago)
- Last Synced: 2025-09-20T05:54:10.291Z (9 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Description
-----------
This library defines an abstract Magento 2 controller that disables all form key checks on POST requests. This is useful, for example, when implementing a controller that must receive POST requests from an outside system, such as a payment gayeway.
For Magento 2.0 to 2.2 this module defines just a plain controller, as no such check was present in these Magento versions. For Magento 2.3+, this library defines a controller that implements the CsrfAwareActionInterface interface.
Use
---
Require this library by running the command:
```
composer require webgriffe/magento2-open-post-controller ^2.0
```
Depending on the currently installed Magento version, this will define a different version of an abstract controller class. Any controller that inherits from that abstract controller will then disable the form key checks.