redivis.setApiProxy
redivis.setApiProxy(baseUrl[, { headers }])
Sends all API requests through a proxy, rather than to Redivis directly. The proxy's base URL replaces https://redivis.com/api/v1, and headers are sent with every request. This lets you keep credentials on your own server (which adds an Authorization header before forwarding each request to Redivis), so that a web application can read data without its users logging in. Requests made through a proxy never prompt a login.
redivis.setApiProxy('https://example.com/api/redivis', {
headers: { 'X-CSRF-Token': csrfToken },
});Was this helpful?

