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

# Store URL and origins

> Authorize the storefront origin that can load a Generic Embed configuration.

The Store URL binds a Generic Embed store to one HTTP or HTTPS origin. Trylora compares the page origin with this value before returning store configuration.

## Enter a valid Store URL

In the Trylora dashboard, open the store's **Settings** tab. Under **Storefront**, set **Store URL** to the exact storefront origin.

```text theme={null}
https://shop.example.com
```

The origin contains:

* The scheme, such as `https`
* The hostname, such as `shop.example.com`
* The port when it is not the default port

Paths, query strings, and fragments are not part of the origin. If you enter `https://shop.example.com/products/dress`, Trylora stores `https://shop.example.com`.

<Warning>
  `https://example.com` and `https://www.example.com` are different origins. Enter the hostname shoppers actually use after redirects complete.
</Warning>

## Development environments

For local testing, use the full local origin, including its port:

```text theme={null}
http://localhost:3000
```

Before production launch, update **Store URL** to the production origin and select **Save Store Settings**.

## Store Keys

The generated script includes `data-store-key`. The Store Key chooses the store configuration; the Store URL controls where that configuration may load.

```html theme={null}
<script
  async
  src="https://cdn.trylora.app/embed.js"
  data-store-key="your_store_key"
></script>
```

* Copy the Store Key from the store's **Embed** tab.
* Do not reuse one Store Key for unrelated storefront origins.
* Do not rename the `data-store-key` attribute.
* Treat the Store Key as a public identifier.

## Verify origin authorization

Open the storefront and inspect the browser network panel. A configuration request rejected for the current origin indicates that **Store URL** does not match the page origin.

After correcting the URL, select **Save Store Settings** and reload the storefront without cache.
