Skip to content

Commit

Permalink
header added to exception response
Browse files Browse the repository at this point in the history
  • Loading branch information
rrd108 committed Feb 28, 2022
1 parent 7d492f3 commit eaf1eb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Error/JsonApiExceptionRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function jsonApi(JsonApiException $error)
];

return $response
->withAddedHeader('Access-Control-Allow-Origin', '*')
->withStringBody(json_encode($data))
->withStatus($error->getCode())
->withType('application/json');
Expand Down

0 comments on commit eaf1eb9

Please sign in to comment.