Skip to content

Commit eaf1eb9

Browse files
committed
header added to exception response
1 parent 7d492f3 commit eaf1eb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Error/JsonApiExceptionRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function jsonApi(JsonApiException $error)
2020
];
2121

2222
return $response
23+
->withAddedHeader('Access-Control-Allow-Origin', '*')
2324
->withStringBody(json_encode($data))
2425
->withStatus($error->getCode())
2526
->withType('application/json');

0 commit comments

Comments
 (0)