CORS error workaround