Allow CORS in replays/search

This commit is contained in:
Guangcong Luo 2023-10-27 17:31:16 +00:00
parent 027c12df22
commit a03ae82ab1

View File

@ -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),