Skip to content

Commit 18d8ba8

Browse files
committed
fix for #691
1 parent 9a9f63a commit 18d8ba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7399,7 +7399,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
73997399
$response = $this->responder->error(ErrorCode::ORIGIN_FORBIDDEN, $origin);
74007400
} elseif ($method == 'OPTIONS') {
74017401
$response = ResponseFactory::fromStatus(ResponseFactory::OK);
7402-
$allowHeaders = $this->getProperty('allowHeaders', 'Content-Type, X-XSRF-TOKEN, X-Authorization');
7402+
$allowHeaders = $this->getProperty('allowHeaders', 'Content-Type, X-XSRF-TOKEN, X-Authorization, X-Debug-Info, X-Exception-Name, X-Exception-Message, X-Exception-File');
74037403
if ($allowHeaders) {
74047404
$response = $response->withHeader('Access-Control-Allow-Headers', $allowHeaders);
74057405
}
@@ -7415,7 +7415,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
74157415
if ($maxAge) {
74167416
$response = $response->withHeader('Access-Control-Max-Age', $maxAge);
74177417
}
7418-
$exposeHeaders = $this->getProperty('exposeHeaders', '');
7418+
$exposeHeaders = $this->getProperty('exposeHeaders', 'X-Debug-Info, X-Exception-Name, X-Exception-Message, X-Exception-File');
74197419
if ($exposeHeaders) {
74207420
$response = $response->withHeader('Access-Control-Expose-Headers', $exposeHeaders);
74217421
}

0 commit comments

Comments
 (0)