fixes
parent
cffa0d1d30
commit
9be8c9da7e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue