Cookies on faable.link
Browsers treat each <app>.faable.link as a separate site, so two apps on faable.link cannot share a cookie. faable.link is on the Public Suffix List , the list browsers use to decide where one site ends and another begins. This protects your app: no other app on faable.link can set a cookie that yours receives.
The entry was added in November 2026. Each browser picks it up with its own updates, so until then an older version may still treat faable.link as one site. Don’t rely on either behavior: build as if every app were its own site.
What works and what doesn’t
| You want to | On *.faable.link |
|---|---|
Set a cookie for your own app (no Domain attribute) | Works |
Set Domain=.faable.link | Rejected by the browser |
Send a SameSite=Lax or Strict cookie on a fetch to another app | The cookie is not sent |
Send a SameSite=None; Secure cookie on a fetch to another app | Third-party cookie: some browsers block it |
Send an Authorization: Bearer token to another app | Works, with CORS enabled on the API |
Use a passkey with faable.link as the relying party ID | Rejected by the browser; use your app’s own host |
Apps on a custom domain follow the rules of that domain and are not affected.
A frontend and an API in two apps
If web-ab12c.faable.link calls api-cd34e.faable.link and the API keeps its session in a cookie, choose one of these:
-
Put both on your own domain, for example
www.example.comandapi.example.com. They are the same site, soSameSite=Laxcookies are sent. This is the one to use in production. -
Proxy the API through the frontend, so the browser only talks to one host. The cookie belongs to the frontend’s host. In Next.js, use a rewrite:
// next.config.mjs export default { async rewrites() { return [ { source: '/api/:path*', destination: 'https://api-cd34e.faable.link/api/:path*' } ] } }The API must set its cookie without a
Domainattribute. -
Use a token instead of a cookie: send it in the
Authorizationheader.
With option 1, fetch still needs credentials: 'include', and the API must answer with Access-Control-Allow-Credentials: true and your exact frontend origin in Access-Control-Allow-Origin (not *).
Signing in with Faable Auth
Sign-in by redirect works the same on a faable.link URL: the browser navigates to your Faable Auth domain and comes back with a code.
Troubleshooting
- The login succeeds but the next API call answers 401: the API’s cookie is not being sent across apps. Use one of the three options above.
- The cookie never appears in the browser: remove
Domain=.faable.linkfromSet-Cookie. - It works in one browser and fails in another: they have different versions of the list, or one blocks third-party cookies.
Related
Last updated on