Skip to content

Commit 8dcffbf

Browse files
author
root
committed
fix JsonResponse withHeader
1 parent 9e59021 commit 8dcffbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

solid/lib/Controller/ServerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function openid() {
117117
$response = new \Laminas\Diactoros\Response();
118118
$server = new \Pdsinterop\Solid\Auth\Server($this->authServerFactory, $this->authServerConfig, $response);
119119
$response = $server->respondToOpenIdMetadataRequest();
120-
return $this->respond($response)->withHeader('Access-Control-Allow-Origin', '*');
120+
return $this->respond($response->withHeader('Access-Control-Allow-Origin', '*'));
121121
}
122122

123123
/**

0 commit comments

Comments
 (0)