Skip to content

Commit

Permalink
OPTIONS should not require an XSRF token.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Feb 23, 2011
1 parent fb8736c commit e7ae6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def _execute(self, transforms, *args, **kwargs):
raise HTTPError(405)
# If XSRF cookies are turned on, reject form submissions without
# 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.check_xsrf_cookie()
self.prepare()
Expand Down

0 comments on commit e7ae6c9

Please sign in to comment.