Skip to content

Commit

Permalink
Allow CORS in replays/search
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Oct 27, 2023
1 parent 027c12d commit a03ae82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ export const actions: {[k: string]: QueryHandler} = {
return Replays.recent();
},
async 'replays/search'(params) {
this.allowCORS();
const search = {
username: toID(params.username),
username2: toID(params.username2),
Expand Down

0 comments on commit a03ae82

Please sign in to comment.