mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 22:19:28 -04:00
[api] allow CORS
This commit is contained in:
parent
99324a71f1
commit
d5fb9cc0de
@ -60,6 +60,8 @@ app.use(async function (req, res, next) {
|
||||
res.on('finish', async () => {
|
||||
await req.db.close();
|
||||
});
|
||||
res.set('Access-Control-Allow-Origin', '*');
|
||||
res.set('Access-Control-Allow-Headers', 'authorization,content-type');
|
||||
next();
|
||||
} catch (err) {
|
||||
next(err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user