From a82ef767461b4d78b5dee3223dff3e5435301c8a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 13 May 2019 16:16:13 +0200 Subject: [PATCH] CORS: preflight_response: cookie is not used here Ref: https://github.com/encode/starlette/issues/510#issuecomment-491836700 --- starlette/middleware/cors.py | 1 - 1 file changed, 1 deletion(-) diff --git a/starlette/middleware/cors.py b/starlette/middleware/cors.py index 52904108..ad2eeff4 100644 --- a/starlette/middleware/cors.py +++ b/starlette/middleware/cors.py @@ -98,7 +98,6 @@ class CORSMiddleware: requested_origin = request_headers["origin"] requested_method = request_headers["access-control-request-method"] requested_headers = request_headers.get("access-control-request-headers") - requested_cookie = "cookie" in request_headers headers = dict(self.preflight_headers) failures = []