Skip to content

Commit

Permalink
Merge pull request #461 from blankse/fix_cors
Browse files Browse the repository at this point in the history
Fix: CORS error Pimcore 10 /w DataHub 1.0.9
  • Loading branch information
weisswurstkanone committed Jan 21, 2022
2 parents 1bcd67d + 5c1db41 commit e6ff28d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Controller/WebserviceController.php
Expand Up @@ -159,8 +159,8 @@ public function webonyxAction(
$input = json_decode($request->getContent(), true);
}

$query = $input['query'];
$variableValues = isset($input['variables']) ? $input['variables'] : null;
$query = $input['query'] ?? null;
$variableValues = $input['variables'] ?? null;

try {
$rootValue = [];
Expand Down Expand Up @@ -195,7 +195,6 @@ public function webonyxAction(
null,
null,
$validators

);

$exResult = new ExecutorResultEvent($request, $result);
Expand Down

0 comments on commit e6ff28d

Please sign in to comment.