parent
fb8736cdf1
commit
e7ae6c91c9
|
@ -853,7 +853,7 @@ class RequestHandler(object):
|
||||||
raise HTTPError(405)
|
raise HTTPError(405)
|
||||||
# If XSRF cookies are turned on, reject form submissions without
|
# If XSRF cookies are turned on, reject form submissions without
|
||||||
# the proper cookie
|
# the proper cookie
|
||||||
if self.request.method not in ("GET", "HEAD") and \
|
if self.request.method not in ("GET", "HEAD", "OPTIONS") and \
|
||||||
self.application.settings.get("xsrf_cookies"):
|
self.application.settings.get("xsrf_cookies"):
|
||||||
self.check_xsrf_cookie()
|
self.check_xsrf_cookie()
|
||||||
self.prepare()
|
self.prepare()
|
||||||
|
|
Loading…
Reference in New Issue