Merge pull request #513 from blueyed/unused-cookie

CORS: preflight_response: cookie is not used here
This commit is contained in:
Tom Christie 2019-05-20 16:15:30 +01:00 committed by GitHub
commit ab86530edd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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 = []