@app.route("<STR_LIT>")<EOL>def get_exception():
raise Exception("<STR_LIT>")<EOL>
Since the path matches the regular expression r'/api/*', this resource
automatically has CORS headers set.

Browsers will first make a preflight request to verify that the resource
allows cross-origin POSTs with a JSON Content-Type, which can be simulated
as:
$ curl --include -X OPTIONS http://127.0.0.1:5000/exception \
    --header Access-Control-Request-Method:POST \
    --header Access-Control-Request-Headers:Content-Type \
    --header Origin:www.examplesite.com
>> HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Allow: POST, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT
Content-Length: 0
Server: Werkzeug/0.9.6 Python/2.7.9
Date: Sat, 31 Jan 2015 22:25:22 GMT