From 4b3dea0fc8b4a81d02c8241182cdff5400adb91d Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 19 Oct 2020 19:50:49 -0400 Subject: [PATCH] fix --- src/api/comm.libraryofcode.org/routes/report.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/comm.libraryofcode.org/routes/report.ts b/src/api/comm.libraryofcode.org/routes/report.ts index 304aff4..ca1b4a8 100644 --- a/src/api/comm.libraryofcode.org/routes/report.ts +++ b/src/api/comm.libraryofcode.org/routes/report.ts @@ -13,6 +13,8 @@ export default class Report extends Route { public bind() { this.router.all('*', (_req, res, next) => { res.setHeader('Access-Control-Allow-Origin', '*'); + res.setHeader('Access-Control-Allow-Methods', '*'); + res.setHeader('Access-Control-Allow-Headers', '*'); next(); });