Loading capif_backend/backoffice_service/controllers/login.py +16 −18 Original line number Diff line number Diff line Loading @@ -7,8 +7,9 @@ from flask_cors import cross_origin access_routes = Blueprint("acces_routes", __name__) @cross_origin() @access_routes.route("/login", methods=["POST"]) @access_routes.route("/login", methods=["POST", "OPTIONS"]) def login(): if request.method == "POST": username = request.form.get("username", None) password = request.form.get("password", None) Loading @@ -25,10 +26,7 @@ def login(): return jsonify(access_token=access_token, refresh_token=refresh_token) @cross_origin() @access_routes.route("/login", methods=["OPTIONS"]) def login(): elif request.method == "OPTIONS": return jsonify("messaje: options CORS OK"), 200 @cross_origin() Loading Loading
capif_backend/backoffice_service/controllers/login.py +16 −18 Original line number Diff line number Diff line Loading @@ -7,8 +7,9 @@ from flask_cors import cross_origin access_routes = Blueprint("acces_routes", __name__) @cross_origin() @access_routes.route("/login", methods=["POST"]) @access_routes.route("/login", methods=["POST", "OPTIONS"]) def login(): if request.method == "POST": username = request.form.get("username", None) password = request.form.get("password", None) Loading @@ -25,10 +26,7 @@ def login(): return jsonify(access_token=access_token, refresh_token=refresh_token) @cross_origin() @access_routes.route("/login", methods=["OPTIONS"]) def login(): elif request.method == "OPTIONS": return jsonify("messaje: options CORS OK"), 200 @cross_origin() Loading