From 4706d60b04466077c6191f53cea82a46d0ec2221 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 9 Jun 2021 07:44:19 +0000 Subject: [PATCH] Added documentation --- src/App/Module.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/Module.php b/src/App/Module.php index 4c61b4455..b2cc8210e 100644 --- a/src/App/Module.php +++ b/src/App/Module.php @@ -265,6 +265,8 @@ class Module $logger->debug('index.php: page not found.', ['request_uri' => $server['REQUEST_URI'], 'address' => $server['REMOTE_ADDR'], 'query' => $server['QUERY_STRING']]); } + // @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS + // @todo Check allowed methods per requested path if ($server['REQUEST_METHOD'] === Router::OPTIONS) { header('HTTP/1.1 204 No Content'); header('Allow: ' . implode(',', Router::ALLOWED_METHODS));