add Accept header with app/json

CF, for some reason, needs a very specific Accept header otherwise it login() won't work