From 426fa6e16ff041ff6af1aaa277d8f6bb53f5ed66 Mon Sep 17 00:00:00 2001 From: Webmaster At Cosmic DNA <92752640+DanielAtCosmicDNA@users.noreply.github.com> Date: Sun, 31 Mar 2024 21:53:22 +0100 Subject: [PATCH] Update cors.py The line logger.debug("Provide CORS headers for request", extra=log_extra) misleads users as if the request was missing CORS headers, when the code flow was a normal response. --- src/aiohttp_middlewares/cors.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/aiohttp_middlewares/cors.py b/src/aiohttp_middlewares/cors.py index fa5fc4f..d77dc17 100644 --- a/src/aiohttp_middlewares/cors.py +++ b/src/aiohttp_middlewares/cors.py @@ -320,7 +320,6 @@ async def middleware( raise web.HTTPOk(text="", headers=response.headers) # Otherwise return normal response - logger.debug("Provide CORS headers for request", extra=log_extra) return response return middleware