How it works
A sandbox can run a web server on a port, such as 3000. A preview URL maps a web address to that port. A request to the address reaches the server on that port. A sandbox can have several preview URLs, one for each port. A preview URL carries inbound requests. An egress allowlist limits outbound ones.
Access control
Access depends on the provider. Some preview URLs are public. Anyone with the link can open them, and no login is needed. Other URLs need a token. The token can sit in the URL, in a query parameter, or in a request header.
Risks of a public URL
A public URL exposes the app to anyone who gets the link. The app may have no login of its own. Treat a token in a URL as a secret. Anyone with the token can open the app. Some providers recommend a check in the app itself, such as a check of the Authorization header, as a second layer.
What to check
- Whether the URL is public or needs a token by default.
- Where the token goes, and whether you can change it.
- Whether the URL changes when a port is exposed again.
- How to revoke a token, and what stops the link from working.