Added cross-origin resource sharing (CORS) support by introducing a filter. Added proxy support by deriving the baseURL from the X-Forwarded-URL header (this header should be added by the proxy server).