Configuration
xlwings Lite is configured via the following settings. You set them either as environment variables or by using the xlwings-lite CLI when deploying on a Linux VM. XLWINGS_LICENSE_KEY is required; all others are optional.
General
Variable |
Default |
Description |
|---|---|---|
|
— |
Your xlwings license key (request a trial key). |
|
— |
e.g., |
|
|
Sets the port on which the container, i.e., application runs. |
Python packages
Variable |
Default |
Description |
|---|---|---|
|
|
If |
|
— |
Full URL of a private PyPI index (e.g., Nexus, Artifactory, devpi, Azure Artifacts) — the same URL you’d pass to |
|
|
How the container authenticates to |
|
|
The Pyodide version used for newly created workbooks. Existing workbooks keep the version they were pinned to. Available versions: |
CORS proxy
Variable |
Default |
Description |
|---|---|---|
|
— |
Comma-separated allowlist of hostnames that user Python code can reach via the built-in CORS proxy. Supports exact matches and |
|
|
If |
The proxy is transparent: users write their requests against the original URL, e.g., requests.get("https://api.example.com/data"), and the add-in routes cross-origin HTTPS requests to allowed hosts through the container, which adds the CORS headers on the way back. There is no URL prefix to add. Requests to hosts that aren’t allowed go directly from the browser, so they still work if the target server sends CORS headers itself. The proxy handles https:// targets on the default port 443 only.
Choosing between the two settings:
XLWINGS_CORS_PROXY_HOSTSis the strict option. Only the listed hosts can be reached through the container, and everything else stays subject to the browser’s CORS rules.XLWINGS_CORS_PROXY_ALLOW_ALL_HOSTS=trueis the convenient option: every web API works without maintaining a list. The trade-off is that every cross-origin request is now made by the container rather than the user’s machine. Any web filter or firewall that your company enforces on user traffic doesn’t apply to these requests, unless the container’s outbound traffic goes through the same controls.
Tooling
Variable |
Default |
Description |
|---|---|---|
|
|
If |