# same\_origin

Hot Reloadable

This option is relevant for clients used within a Web Browser, such as [nats.ws](https://github.com/nats-io/nats.ws).

When set to `true`, the HTTP `Origin` header must match the request’s hostname. Refer to [cross-origin resource sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) documentation for more details.

## Types

| Type      | Description | Choices         |
| --------- | ----------- | --------------- |
| `boolean` | -           | `true`, `false` |
