๐Ÿ” CORS Credentials

March 28, 2026 ยท View on GitHub

Controls how Ketesa sends cookies and credentials when making API requests. Most deployments don't need to touch this โ€” the default works fine for standard setups. You'll typically only need it when adding a reverse-proxy authentication layer in front of your homeserver.

When to change it:

  • include โ€” use this when you have cookie-based auth in front of your homeserver (e.g., ForwardAuth with Authelia). Cookies will be forwarded with every request regardless of origin.
  • omit โ€” use this if your setup explicitly must not send any cookies (rare; usually for strict security policies).
  • same-origin โ€” the default; works for the vast majority of deployments.

โš™๏ธ Configuration

๐Ÿ“š MDN reference: credentials option

ValueWhen to useBehavior
same-origin (default)Standard deploymentsCookies sent only for same-origin requests
includeCookie-based auth (ForwardAuth, Authelia, etc.)Cookies sent with every request
omitStrict no-cookie policiesCookies never sent

Configuration options

config.json

{
  "corsCredentials": "include"
}

/.well-known/matrix/client

{
  "cc.etke.ketesa": {
    "corsCredentials": "include"
  }
}