mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-09-07 17:55:12 -05:00
Allow CORS in replays/search
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user