From 9be8c9da7ea593e097ff24aee2880ca5592a1c15 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 21 Oct 2020 16:36:24 -0400 Subject: [PATCH] fixes --- 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 102fd44..ce3b35a 100644 --- a/src/api/comm.libraryofcode.org/routes/report.ts +++ b/src/api/comm.libraryofcode.org/routes/report.ts @@ -355,7 +355,7 @@ export default class Report extends Route { this.router.get('/web', async (req, res) => { try { - res.setHeader('Access-Control-Allow-Origin', 'report.libraryofcode.org'); + res.setHeader('Access-Control-Allow-Origin', '*'); if (this.timeout.has(req.ip)) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.messages.UNAUTHORIZED }); if (!req.query.pin) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.messages.UNAUTHORIZED }); const args = req.query.pin.toString();