mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
allow agent
This commit is contained in:
parent
135f0ac4b3
commit
41d4b4c402
@ -12,7 +12,7 @@ import { uuid } from 'lib/crypto';
|
||||
export default async (req, res) => {
|
||||
await useCors(req, res);
|
||||
|
||||
if (isbot(req.headers['user-agent'])) {
|
||||
if (isbot(req.headers['user-agent']) && !process.env.ALLOW_AGENT) {
|
||||
return ok(res);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user