Fix http auth on selected environments