From 56b61bc89797445c976920b4d2bfb9e789462043 Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Fri, 19 Jan 2024 09:09:30 +0100 Subject: [PATCH] add link to allowed headers --- solid/lib/Middleware/SolidCorsMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solid/lib/Middleware/SolidCorsMiddleware.php b/solid/lib/Middleware/SolidCorsMiddleware.php index 6ce6fe9..f0af686 100644 --- a/solid/lib/Middleware/SolidCorsMiddleware.php +++ b/solid/lib/Middleware/SolidCorsMiddleware.php @@ -15,7 +15,7 @@ public function __construct(IRequest $request) { public function afterController($controller, $methodName, Response $response) { $corsMethods="GET, PUT, POST, OPTIONS, DELETE, PATCH"; - $corsAllowedHeaders="*, allow, accept, authorization, content-type, dpop, slug"; + $corsAllowedHeaders="*, allow, accept, authorization, content-type, dpop, slug, link"; $corsMaxAge="1728000"; $corsExposeHeaders="Authorization, User, Location, Link, Vary, Last-Modified, ETag, Accept-Patch, Accept-Post, Updates-Via, Allow, WAC-Allow, Content-Length, WWW-Authenticate, MS-Author-Via"; $corsAllowCredentials="true";