Browse Source

Try Access-Control-Allow-Origin: * for API responses.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
5d1960db81
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app.fcgi

+ 1
- 0
app.fcgi View File

@@ -121,6 +121,7 @@ def api_json():
return render_template("api.mako", help=False, result=result) return render_template("api.mako", help=False, result=result)
resp = make_response(dumps(result)) resp = make_response(dumps(result))
resp.mimetype = "application/json" resp.mimetype = "application/json"
resp.headers["Access-Control-Allow-Origin"] = "*"
return resp return resp


if __name__ == '__main__': if __name__ == '__main__':


Loading…
Cancel
Save