Skip to content

Commit 22b7d51

Browse files
authored
docs: skip preview header to preview page (#2363)
Signed-off-by: Toma Puljak <[email protected]>
1 parent c8dae9d commit 22b7d51

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

apps/docs/src/content/docs/en/preview-and-authentication.mdx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,16 @@ Processes listening for HTTP traffic in port range `3000-9999` can be previewed
99
A preview link's schema consists of the port and Sandbox ID combination, e.g.:
1010
`https://3000-sandbox-123456.proxy.daytona.works`
1111

12-
:::tip
13-
When opening the preview link in a browser, a warning page will be shown for the first time.
14-
This warning serves as a security measure to inform users about the potential risks of visiting the preview URL.
15-
16-
To avoid this warning, you can upgrade to [Tier 3](/docs/en/limits) or deploy your own [custom preview proxy](/docs/en/custom-domain-authentication).
17-
:::
18-
1912
If the Sandbox has its `public` property set to `true`, these links will be publicly accessible, otherwise the preview link will be available only to the Sandbox Organization users.
2013

21-
For programmatic access (e.g., with curl), use the X-Daytona-Preview-Token header to provide the authorization token when accessing the preview URL:
14+
For programmatic access (e.g., with curl), use the `X-Daytona-Preview-Token` header to provide the authorization token when accessing the preview URL:
2215

2316
```bash
2417
curl -H "x-daytona-preview-token: vg5c0ylmcimr8b_v1ne0u6mdnvit6gc0" \
2518
https://3000-sandbox-123456.proxy.daytona.works
2619
```
2720

28-
Alternatively, provide the DAYTONA_SANDBOX_AUTH_KEY query parameter as the authorization token for runtimes that don’t support additional headers (e.g., browser runtimes):
21+
Alternatively, provide the `DAYTONA_SANDBOX_AUTH_KEY` query parameter as the authorization token for runtimes that don’t support additional headers (e.g., browser runtimes):
2922
```bash
3023
curl "https://3000-sandbox-123456.proxy.daytona.works?DAYTONA_SANDBOX_AUTH_KEY=vg5c0ylmcimr8b_v1ne0u6mdnvit6gc0"
3124
```
@@ -60,3 +53,16 @@ console.log(`Preview link token: ${previewInfo.token}`);
6053
:::tip
6154
If you want to serve the previews under your own domain instead of using Daytona's URLs, check out the [Custom Domain/Authentication](/docs/en/custom-domain-authentication) section.
6255
:::
56+
57+
## Warning Page
58+
59+
When opening the preview link in a browser, a warning page will be shown for the first time.
60+
This warning serves as a security measure to inform users about the potential risks of visiting the preview URL.
61+
62+
The warning page will only be shown when loading the preview link in a browser.
63+
64+
To avoid this warning you can do one of the following:
65+
66+
- Send the `X-Daytona-Skip-Preview-Warning: true` header
67+
- Upgrade to [Tier 3](/docs/en/limits)
68+
- Deploy your own [custom preview proxy](/docs/en/custom-domain-authentication)

0 commit comments

Comments
 (0)