Xano Authentification with Cookie

Hello,

I have an authentication issue.

1. In the /auth/login endpoint, the "Create Authentication Token" step generates a valid token (visible in the body and in the debug logs).

The "Set Header" step is configured to send the cookie with the syntax:

Set-Cookie: token={{authToken}}; HttpOnly; Secure; SameSite=Strict; Path=/;

However, externally (via Postman), the variable substitution doesn't work and the cookie remains literally {{authToken}}.

On the Axios Interceptor, I added the alternative header X-Xano-Authorization-Only: true so that Xano uses the cookie for authentication.

The rest of the Axios configuration (withCredentials, etc.) seems to be correct.

Can you help me?

1 reply