Closed georgexsh closed 8 years ago
Hey @georgexsh so sorry for the delay here.
The issue here is partially our bug (in that the docs are unclear, and perhaps the API).
To fix, simply do not assign the result of calling flask_cors.
E.G
bp = flask.Blueprint('api', __name__, url_prefix='/api')
flask_cors.CORS(bp, max_age=30*86400)
@bp.before_request
def load_user():
...
I think it is understandable to assume that the extension could be applied in that way, I'll add a note to update it.
Thanks very much!
with code:
will yield:
my usage is wrong or a bug?