diff --git a/src/core/api.js b/src/core/api.js index 686414af..c5110a05 100644 --- a/src/core/api.js +++ b/src/core/api.js @@ -53,7 +53,13 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { app.use('/api', cors({ methods: ['GET', 'POST'], - ...corsConfig + exposedHeaders: [ + 'Ratelimit-Limit', + 'Ratelimit-Policy', + 'Ratelimit-Remaining', + 'Ratelimit-Reset' + ], + ...corsConfig, })) app.use('/api/json', apiLimiter);