Search code examples
elasticsearchelastic-stacknavigator

How to replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform and migrate to navigator.userAgentData


I am attempting to access an Elastic cluster but have been greeted with the following error:

"Please upgrade your browser. This Elastic installation has strict security requirements enabled that your current browser does not meet."

When I open the Console and check Issues, here is what I'm seeing:

Issue

"A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.

To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData."

How do I migrate to navigator.userAgentData? I would like to try this as my next troubleshooting step, but if you happen to have experience with Elastic or have resolved this error/issue before, would love to hear how you did it.

I have tried accessing this Elastic cluster in Chrome, Edge, Firefox, and Chromium - the issue persists across all these browsers.

I have tried updating my browser, Chrome is up to date and running Version 114.0.5735.134 (Official Build) (64-bit)

I have tried different user agents in Chrome.

I have tried uninstalling and re-installing Chrome

I have tried turning on and off all the CSP settings in Firefox just in case this csp value is part of the problem, which didn't resolve the issue

Elements script


Solution

  • This issue has been resolved, it appears there was an issue with my group policy object and a group policy updated has resolved this issue