--server-token-auth
- CLI
- --server-token-auth
- REST
- CLI only
Requires Authorization: Bearer <token> on every request; a missing or wrong token answers 401. With --server-basic-auth also set, only the token authorizes.
Example
Start the server:
CLI
Run locally
zshot --server --server-token-auth s3cr3tRequest a capture:
curl -H "Authorization: Bearer s3cr3t" -o pipeline.png "http://127.0.0.1:3000/?url=https://zshot-cli.com/example_assets/zrm/"