We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd64da commit 95f5fd3Copy full SHA for 95f5fd3
app/code/Magento/GraphQl/Controller/HttpRequestValidator/HttpVerbValidator.php
@@ -30,7 +30,7 @@ public function validate(HttpRequestInterface $request) : void
30
if (false === $request->isPost()) {
31
$query = $request->getParam('query', '');
32
// The easiest way to determine mutations without additional parsing
33
- if (strpos(trim($query), 'mutation') === 0) {
+ if (strpos(trim($query), 'mutation') !== false) {
34
throw new GraphQlInputException(
35
new \Magento\Framework\Phrase('Mutation requests allowed only for POST requests')
36
);
0 commit comments