---
title: "origin_not_allowed: what it means and how to fix it · Hypamoon"
description: "HTTP 403. The page that called a /api/v1/public route is not on the list of allowed origins of the public chat token, or the request had no Origin header."
url: https://hypamoon.com/docs/errors/origin_not_allowed
---

**Start for free.** [Sign up](https://app.hypamoon.com/?mode=signup&utm_source=docs&utm_campaign=banner) without a card and connect your chat, or create a test key for the API. Going live with something real asks for a quick check of your company first.

[Errors](https://hypamoon.com/docs/errors)

# origin\_not\_allowed

**Status**\
403

**Type**\
`https://hypamoon.com/docs/errors/origin_not_allowed`

The page that called a `/api/v1/public` route is not on the list of allowed origins of the public chat token, or the request had no `Origin` header. The origin must match exactly: scheme and host, like `https://www.example.com`. `https://example.com` does not cover `https://www.example.com`; list both if your site answers on both. Add it with `PATCH /api/v1/chat-tokens/{id}` or in the portal. A test token (`hm_pubtest_`) also works from `localhost`. A request from a server without an `Origin` header is not what these routes are for: from your backend, use your API key with `/api/v1/conversations`.

Hypamoon is the infrastructure your chat or agent builds on for a business. Hypamoon API, version 1.[hypamoon.com](https://hypamoon.com/)
