aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index fd2b724..3c0b862 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -30,6 +30,7 @@ app.use(limiter)
app.use(express.json())
app.use((req, res, next) => {
res.setHeader('Access-Control-Allow-Origin', '*')
+ res.setHeader('Access-Control-Allow-Headers', '*')
next()
})
@@ -190,7 +191,7 @@ app.delete('/accounts/session', async (req, res) => {
// delete a session
try {
const { uuid } = req.body
- const session = await deleteSession(uuid)
+ await deleteSession(uuid)
res.json({ ok: true })
} catch (err) {
console.error(err)