Fix basic http auth in production environment

[#40820587]