优化代码

main
gzydong 2021-06-10 22:49:38 +08:00
parent d93ec44d5c
commit 8aba19c21d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}