From: Daniel Hahler Date: Mon, 13 May 2019 14:16:13 +0000 (+0200) Subject: CORS: preflight_response: cookie is not used here X-Git-Tag: 0.12.0~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F513%2Fhead;p=thirdparty%2Fstarlette.git CORS: preflight_response: cookie is not used here Ref: https://github.com/encode/starlette/issues/510#issuecomment-491836700 --- 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 = []