Update location.js

Add the origin response to the client config to make it accessible in other interceptors.