Skip to content

Commit 33b0d07

Browse files
authored
Merge pull request #144 from pdsinterop/feature/nextcloud26
add origin from the registration to allowed origins
2 parents 7e6d6c6 + c4556a7 commit 33b0d07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

solid/lib/Controller/StorageController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ public function handleRequest($userId, $path) {
338338
if (isset($clientRegistration['client_name'])) {
339339
$allowedOrigins[] = $clientRegistration['client_name'];
340340
}
341+
if (isset($clientRegistration['origin'])) {
342+
$allowedOrigins[] = $clientRegistration['origin'];
343+
}
341344
}
342345
if (!$this->WAC->isAllowed($request, $webId, $origin, $allowedOrigins)) {
343346
$response = $this->resourceServer->getResponse()

0 commit comments

Comments
 (0)