mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
allow agent
This commit is contained in:
parent
135f0ac4b3
commit
41d4b4c402
2 changed files with 4795 additions and 7617 deletions
|
|
@ -12,7 +12,7 @@ import { uuid } from 'lib/crypto';
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
await useCors(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);
|
return ok(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue