mirror of https://github.com/encode/starlette.git
Merge pull request #513 from blueyed/unused-cookie
CORS: preflight_response: cookie is not used here
This commit is contained in:
commit
ab86530edd
|
@ -98,7 +98,6 @@ class CORSMiddleware:
|
||||||
requested_origin = request_headers["origin"]
|
requested_origin = request_headers["origin"]
|
||||||
requested_method = request_headers["access-control-request-method"]
|
requested_method = request_headers["access-control-request-method"]
|
||||||
requested_headers = request_headers.get("access-control-request-headers")
|
requested_headers = request_headers.get("access-control-request-headers")
|
||||||
requested_cookie = "cookie" in request_headers
|
|
||||||
|
|
||||||
headers = dict(self.preflight_headers)
|
headers = dict(self.preflight_headers)
|
||||||
failures = []
|
failures = []
|
||||||
|
|
Loading…
Reference in New Issue