Documentation Index
Fetch the complete documentation index at: https://docs.simplehost.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The site proxy lets a published site call approved external APIs without exposing stored secrets in client-side files. This endpoint is public because it is used by the browser, but it is tightly restricted:- only exact approved hosts are allowed
- only HTTPS targets are allowed
- stored secrets are substituted server-side
- raw stored secret values are never returned by the management API
Endpoint
Path Parameters
The site slug making the request.
Request Body
The full HTTPS URL to call. The hostname must already be approved for this site.
HTTP method to send. Defaults to
GET.Optional headers. Use
{{VARIABLE_NAME}} placeholders where a stored secret should be inserted.Optional request body. This may also contain
{{VARIABLE_NAME}} placeholders.Example
Response
The proxy returns the upstream response status and body, subject to SimpleHost safety checks and response header filtering. When the feature is disabled on a deployment, the endpoint returns a403 FORBIDDEN response instead of forwarding the request.
Rules
- The destination hostname must be on the site’s allowlist
- Only HTTPS URLs are accepted
- Secret values must be referenced using
{{VARIABLE_NAME}} - Do not hardcode private keys into browser files
Intended Flow
When this feature is enabled on a deployment, the intended flow is:- A publish is blocked because exposed secrets were detected in browser files
- The agent explains the issue to the user in plain language
- The user gives permission to secure it
- The agent stores the secret as a site variable
- The agent approves the exact outbound host
- The agent updates only the published copy to use this proxy
- The agent republishes safely