Skip to main content

Frontend-Backend Request Specification (WebUI Internal Open)

When the frontend accesses the backend, it must not directly access the socket file. Requests must go through the platform HTTP proxy path:

/v2/proxy/<app_id>/<api_name>

If the application has only one main interface, it is recommended:

/v2/proxy/<app_id>

Frontend Request Example:

fetch("/v2/proxy/<app_id>/<api_name>", {
method: "POST",
credentials: "include",
headers,
body: JSON.stringify(payload)
});

The backend is recommended to be compatible with the following routes to avoid path inconsistencies under different proxy modes:

/<app_id>
/<app_id>/<api_name>
<config.ini.path>/<api_name>
<config.ini.path>/<app_id>