# `Keksdose.FrontendConfig`
[🔗](https://github.com/io2/keksdose/blob/v0.4.1/lib/keksdose/frontend_config.ex#L1)

Helper to inject the ingestion endpoint URL into client HTML.

Render somewhere in your layout `<head>`:

    <%= raw Keksdose.FrontendConfig.inject_script("/api/cookie-consents") %>

The emitted script defines `window.keksdoseEndpoint`. The host's JS
consent library should POST to that URL.

No default endpoint is assumed — the host chooses where to mount the
`Keksdose.PlugHandler` plug via `forward` and passes that path here.

# `inject_script`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
