Shared token
The WebSocket print job and the HTTP GET / POST /api/config endpoints are protected by an optional shared token.
- If
EPS_AUTH_TOKENis unset, only loopback clients (127.0.0.1and::1) are accepted. - To serve remote clients, set
EPS_AUTH_TOKENin the service environment, restart the server, and send the same value asauth_tokenin every WebSocket payload or as theX-EPS-Tokenheader on/api/configrequests.
The token is sent only in the WebSocket auth_token field or the X-EPS-Token header and is not persisted in printer-settings.json.
This is one shared token for every client, not per-user authentication; treat it as a secret.