Proxy Setup
Proxy setup
In production environments, all requests from the frontend to the Algebrakit web service must be routed through your platform's proxy. The proxy is responsible for:
- Authenticating the request to confirm it originates from a valid user
- Attaching the API key
- Forwarding the request to Algebrakit
The proxy must support GET, POST, and DELETE requests and use a fixed IP address. To have your IP address allowlisted, send it to info@algebrakit.nl.
Refer to one of the SDKs for an example of how to configure the proxy.
Example: Routing requests through your backend proxy
AlgebraKIT = {
config: {
proxy: {
url: 'proxy/algebrakit',
headers: {
'X-CSRF-Token': 'my-value'
}
}
}
};
| Property | Description |
|---|---|
url |
Proxy URL |
headers |
(Optional) Key-value map of headers to include in the request, if this is required for your proxy. |