add X-Request-By header and adjust the way of configuring API URLs