From 7a3154e8ff5130af856e57265b82e1c6fa3e6f88 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 19 Oct 2020 19:48:11 -0400 Subject: [PATCH] fix --- src/api/comm.libraryofcode.org/routes/report.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); });