Lenses 6.0 HQ getting 401 (unauthorized) message with admin user

If you installed freshly Lenses 6.X HQ whether from docker-compose, helm chart, docker run and you are running HQ in non-secure (http) mode you might find that every time you are trying to login whether with admin (break the glass) user or any other it wouldn’t allow you and logs would be filled with 401 Unauthorized requests.

With these properties being set

http:  
  accessControlAllowCredentials: false
  secureSessionCookies: false

and HQ being restarted, you will be able to continue to use HQ and login successfully.