Skip to content

Commit

Permalink
Allow preflight (OPTIONS) requests for flair endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyDo committed Nov 14, 2024
1 parent 3931fa0 commit 0217422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listenbrainz/webserver/views/user_settings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
user_settings_api_bp = Blueprint('user_settings_api_v1', __name__)


@user_settings_api_bp.route("/flair", methods=["POST"])
@user_settings_api_bp.route("/flair", methods=["POST", "OPTIONS"])
@crossdomain
@ratelimit()
def update_flair():
Expand Down

0 comments on commit 0217422

Please sign in to comment.