# How to test web push on the development environment?

If you tried to test your web push integration and got a "401 unauthorized" error in the console of your browser, you most likely need to take the following steps :&#x20;

## Add Your Test URL as an Allowed Origin <a href="#id-1-add-your-test-url-as-an-allowed-dev-origin" id="id-1-add-your-test-url-as-an-allowed-dev-origin"></a>

Go to the **Settings > Channels > Website** section of your dashboard and add your test URLs in the "*Allowed origins*" field.

<figure><img src="/files/IkOE2OkQALRYW4mZmzHp" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.batch.com/developer/technical-guides/how-to-guides/web/how-to-test-web-push-on-the-development-environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
