Commit 1b26f389 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

add options preflight endpoint

parent c5e49168
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -25,6 +25,12 @@ def login():

    return jsonify(access_token=access_token, refresh_token=refresh_token)

@cross_origin()
@access_routes.route("/login", methods=["OPTIONS"])
def login():

    return jsonify("messaje: options CORS OK"), 200

@cross_origin()
@access_routes.route('/refresh', methods=["POST"])
@jwt_required