diff --git a/src/api/comm.libraryofcode.org/routes/report.ts b/src/api/comm.libraryofcode.org/routes/report.ts index e85dff7..304aff4 100644 --- a/src/api/comm.libraryofcode.org/routes/report.ts +++ b/src/api/comm.libraryofcode.org/routes/report.ts @@ -12,7 +12,7 @@ export default class Report extends Route { public bind() { this.router.all('*', (_req, res, next) => { - res.header('Access-Control-Allow-Origin', '*'); + res.setHeader('Access-Control-Allow-Origin', '*'); next(); });