Skip to content

Commit 712128d

Browse files
Code comment about where different headers are added
1 parent 4ccaa5d commit 712128d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

solid/lib/Middleware/SolidCorsMiddleware.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function afterController($controller, $methodName, Response $response) {
3838
$response->addHeader('updates-via', $pubsub);
3939
$response->addHeader('Link', '</.well-known/solid>; rel="http://www.w3.org/ns/solid#storageDescription"');
4040

41+
// Note that apart from these, the Link header with rel="acl" and the WAC-Allow header
42+
// are already added by these lines in vendor/pdsinterop/solid-auth:
43+
// https://github.com/pdsinterop/php-solid-auth/blob/e07c22d/src/WAC.php#L39-L40
4144
return $response;
4245
}
4346
}

0 commit comments

Comments
 (0)