randydev commited on
Commit
b5dfc11
·
verified ·
1 Parent(s): ba3cba1

Update middleware/midware.js

Browse files
Files changed (1) hide show
  1. middleware/midware.js +1 -0
middleware/midware.js CHANGED
@@ -18,6 +18,7 @@ const authenticateApiKeyPremium = async (req, res, next) => {
18
  EXTRA_ALLOWED_UA.some(allowed => ua?.startsWith(allowed));
19
 
20
  if (!isAllowed) {
 
21
  return res.status(403).json({
22
  status: "error",
23
  message: "Access blocked: User-Agent not allowed",
 
18
  EXTRA_ALLOWED_UA.some(allowed => ua?.startsWith(allowed));
19
 
20
  if (!isAllowed) {
21
+ console.log(ua);
22
  return res.status(403).json({
23
  status: "error",
24
  message: "Access blocked: User-Agent not allowed",