> ## Documentation Index
> Fetch the complete documentation index at: https://ngrok.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ngrok Browser Warning FAQ

> Learn why free ngrok endpoints show a browser warning page (ERR_NGROK_6024), why it can blank your frontend, and how to skip or remove it.

You opened a free ngrok URL and got a page that says "You are about to visit…" instead of your app.
Or your frontend loads blank, because its API calls got that page back instead of JSON.

Both are the ngrok browser warning, also called the interstitial.
ngrok shows it on free endpoints to deter phishing.
To get around it, do one of these:

* Send the `ngrok-skip-browser-warning` header from clients you control, such as your frontend's [API calls](#how-do-i-skip-the-warning-on-the-free-plan).
* [Upgrade to any paid plan](https://ngrok.com/pricing?ref=docs-interstitial-faq) to remove it for every visitor.

## What is the ngrok browser warning page?

It's a page ngrok serves in front of your app, before a browser's first request reaches it:

```text theme={"theme":{"light":"css-variables","dark":"css-variables"}}
You are about to visit <YOUR_DOMAIN>. This website is served for free through ngrok.com. You should only visit this website if you trust whoever sent the link to you.
```

ngrok returns it with the error code [ERR\_NGROK\_6024](https://ngrok.com/docs/errors/err_ngrok_6024.md).
Your endpoint and your app are fine.
Visitors click **Visit** and continue to your site.

## Why does ngrok show it?

Attackers have used free ngrok endpoints to host [phishing](https://en.wikipedia.org/wiki/Phishing) pages.
The warning tells visitors that ngrok is serving the site before they type a password into it.
ngrok [added the page](https://ngrok.com/blog/fighting-abuse-on-the-ngrok-platform) to free accounts to cut down on that abuse.

The warning isn't a verdict on whether a site is safe.
See [Is an ngrok link safe to open?](https://ngrok.com/docs/faq.md#is-an-ngrok-link-safe-to-open) for how to judge a link.

## Why does my page load blank, or my API return HTML instead of JSON?

Your frontend is calling a free ngrok endpoint with `fetch` or a similar client, and ngrok answered with the warning page instead of your API's response.
This one is confusing because nothing reports an error.
Your API is up, ngrok is up, and the response is a valid HTML page.
It just isn't the JSON your code expected.

You'll usually see:

* a page that renders but stays empty, or a loading spinner that never stops.
* a JSON parse error such as `Unexpected token '<'` in the browser console.
* an HTML response in the network tab where you expected JSON.

This happens most often when the frontend runs on a different host, such as `localhost` or a hosting provider, and calls an API exposed through ngrok.
The visitor never clicked **Visit** on the API's domain, and cross-origin requests usually don't send that cookie anyway.

To fix it, add the `ngrok-skip-browser-warning` header to the API requests your frontend makes, as shown in the [examples below](#how-do-i-skip-the-warning-on-the-free-plan).
For a cross-origin request, the header triggers a CORS preflight, so your API must also include `ngrok-skip-browser-warning` in its `Access-Control-Allow-Headers` response header.
See [Does ngrok support CORS?](https://ngrok.com/docs/faq.md#does-ngrok-support-cors) for adding CORS headers.

## Which requests see the warning?

ngrok shows the warning only on free-plan endpoints, and only for `GET` requests that send a browser `User-Agent` header.

| Request | Sees the warning? |
| - | - |
| A person opening your URL in a browser | Yes, once every 7 days per domain |
| `fetch`, Axios, or other `GET` requests from JavaScript running in a browser | Yes, unless they send `ngrok-skip-browser-warning` |
| Webhooks from services such as Stripe, GitHub, or Twilio | No |
| `curl`, SDKs, scripts, and other non-browser clients | No |
| WebSocket connections, including ones a browser opens | No |
| `POST`, `PUT`, `DELETE`, and other non-`GET` requests | No |

When a visitor clicks **Visit**, ngrok sets a cookie that suppresses the warning on that domain for 7 days.
Requests from that browser to the same domain, including your app's own same-origin `fetch` calls, then go straight through.

Webhook providers don't send a browser `User-Agent`, so they never see the warning.

## How do I skip the warning on the free plan?

Send one of these headers from the client:

* `ngrok-skip-browser-warning`, set to any value.
* A non-standard `User-Agent`, such as `MyApp/0.0.1`, in place of the browser's default.

Use the first one in code you write:

> [tab] Fetch
>
> ```js theme={"theme":{"light":"css-variables","dark":"css-variables"}}
> const response = await fetch("https://<YOUR_DOMAIN>.ngrok-free.app/api/items", {
>   headers: { "ngrok-skip-browser-warning": "true" },
> });
> ```

> [tab] Axios
>
> ```js theme={"theme":{"light":"css-variables","dark":"css-variables"}}
> const response = await axios.get("https://<YOUR_DOMAIN>.ngrok-free.app/api/items", {
>   headers: { "ngrok-skip-browser-warning": "true" },
> });
> ```

> [tab] curl
>
> ```bash theme={"theme":{"light":"css-variables","dark":"css-variables"}}
> curl -H "ngrok-skip-browser-warning: true" https://<YOUR_DOMAIN>.ngrok-free.app/
> ```

To skip the warning in your own browser, install a browser extension that adds the header or changes the `User-Agent`.
See [Removing the interstitial page](https://ngrok.com/docs/pricing-limits/free-plan-limits.md#removing-the-interstitial-page) for an example extension and more client examples.

## How do I remove the warning for everyone?

Upgrade to [any paid plan](https://ngrok.com/pricing?ref=docs-interstitial-faq).
Paid endpoints don't show the warning to any visitor.

On the free plan, nothing you configure removes it for visitors whose browsers you don't control.
If you're putting a demo or a site in front of customers and the warning is a problem, the free plan isn't the right fit.

## Can I add the skip header with Traffic Policy or the agent?

No.
The [`add-headers` action](https://ngrok.com/docs/gateway/traffic-policy/actions/add-headers) doesn't let you add the `ngrok-skip-browser-warning` header or change the `User-Agent` header.
The header has to come from the client making the request.

## What if I still see the warning after adding the header?

Open your browser's network tab, select the request to your ngrok URL, and confirm its request headers include `ngrok-skip-browser-warning`.
If the browser reports a CORS error instead of the warning, your API's `Access-Control-Allow-Headers` response is missing `ngrok-skip-browser-warning`.

If the header is there and the warning still shows, email [support@ngrok.com](mailto:support@ngrok.com?subject=Help%20with%20ERR_NGROK_6024) with your endpoint URL and the error code ERR\_NGROK\_6024.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.