Update header to be more flexible
Use endpoint config in the d2Api
Update prod