Fix cross-origin proxy and CORS support