Fix API HTTP authentication