Commit 446b6783 authored by Sebastien Robin's avatar Sebastien Robin

some comments

parent ff02d2c9
......@@ -36,6 +36,7 @@ def crossdomain(origin=None, methods=None, headers=None,
h['Access-Control-Allow-Origin'] = origin
h['Access-Control-Allow-Methods'] = get_methods()
h['Access-Control-Max-Age'] = str(max_age)
# XXX It should not be necessary to hardcode allow-headers
h['Access-Control-Allow-Headers'] = 'Content-Type'
if headers is not None:
h['Access-Control-Allow-Headers'] = headers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment