Merge pull request #3920 from overleaf/as-fix-unsupported-middleware
Fix unsupported browser middleware GitOrigin-RevId: 27dc8cef4747abba85a985c28865340bc5116ab7
This commit is contained in:
@@ -6,6 +6,8 @@ function unsupportedBrowserMiddleware(req, res, next) {
|
||||
|
||||
const userAgent = req.headers['user-agent']
|
||||
|
||||
if (!userAgent) return next()
|
||||
|
||||
const parser = Bowser.getParser(userAgent)
|
||||
|
||||
// Allow bots through by only ignoring bots or unrecognised UA strings
|
||||
|
||||
Reference in New Issue
Block a user