You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/src/content/docs/en/preview-and-authentication.mdx
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,23 +9,16 @@ Processes listening for HTTP traffic in port range `3000-9999` can be previewed
9
9
A preview link's schema consists of the port and Sandbox ID combination, e.g.:
10
10
`https://3000-sandbox-123456.proxy.daytona.works`
11
11
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
-
19
12
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.
20
13
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:
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):
@@ -60,3 +53,16 @@ console.log(`Preview link token: ${previewInfo.token}`);
60
53
:::tip
61
54
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.
62
55
:::
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