We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit ed3f68f9 authored by cyattilakiss's avatar cyattilakiss Committed by GitHub

Merge pull request #475 from JeroenVanLeusden/JeroenVanLeusden-patch-1

Update Csrf validation for Magento v2.3.2
parents ad5b7e78 6568b6af
......@@ -75,6 +75,7 @@ class Json extends \Magento\Framework\App\Action\Action
$request = $this->getRequest();
if ($request instanceof Http && $request->isPost()) {
$request->setParam('isAjax', true);
$request->getHeaders()->addHeaderLine('X_REQUESTED_WITH', 'XMLHttpRequest');
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment