Skip to content

Commit

Permalink
add origin
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Jan 19, 2024
1 parent 6c6dc90 commit c4556a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions solid/lib/Controller/StorageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ public function handleRequest($userId, $path) {
if (isset($clientRegistration['client_name'])) {
$allowedOrigins[] = $clientRegistration['client_name'];
}
if (isset($clientRegistration['origin'])) {
$allowedOrigins[] = $clientRegistration['origin'];
}
}
if (!$this->WAC->isAllowed($request, $webId, $origin, $allowedOrigins)) {
$response = $this->resourceServer->getResponse()
Expand Down

0 comments on commit c4556a7

Please sign in to comment.