allow agent
This commit is contained in:
1 parent
135f0ac4b3
commit
41d4b4c402
2 files changed
+4795
-7617
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user