init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace Stemcell\ProductImport\Plugin;
|
||||
|
||||
use Magento\Framework\App\Request\CsrfValidator;
|
||||
use Magento\Framework\App\RequestInterface;
|
||||
|
||||
class DisableCsrfValidation
|
||||
{
|
||||
public function aroundValidate(
|
||||
CsrfValidator $subject,
|
||||
\Closure $proceed,
|
||||
RequestInterface $request
|
||||
) {
|
||||
// Always skip CSRF validation
|
||||
return;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user