return full cookie jar on request
Some checks failed
CI / release (push) Failing after 30s

This commit is contained in:
estebanthilliez
2026-04-24 22:26:27 +02:00
parent 772ed5a176
commit 2220b92849
4 changed files with 56 additions and 18 deletions

View File

@@ -173,6 +173,9 @@ app.post('/cookie', async (req, res) => {
if (!data || typeof data.domain !== 'string' || typeof data.cookieName !== 'string') {
return res.status(400).json({ message: 'Bad Request: missing or invalid domain/cookieName' })
}
if (typeof data.includeCookies !== 'undefined' && typeof data.includeCookies !== 'boolean') {
return res.status(400).json({ message: 'Bad Request: invalid includeCookies' })
}
if (data.user_agent && typeof data.user_agent !== 'string') {
return res.status(400).json({ message: 'Bad Request: invalid user_agent' })
}