diff --git a/app/Middleware/CorsMiddleware.php b/app/Middleware/CorsMiddleware.php index 3aa707b..59b68d3 100644 --- a/app/Middleware/CorsMiddleware.php +++ b/app/Middleware/CorsMiddleware.php @@ -28,7 +28,7 @@ class CorsMiddleware implements MiddlewareInterface Context::set(ResponseInterface::class, $response); - if ($request->getMethod() == 'OPTIONS') { + if ($request->getMethod() == 'OPTIONS' || $request->getUri()->getPath() == '/favicon.ico') { return $response; }