- My goal: Use the
COOKIE_substitution syntax to automatically pass a browser cookie value into the Authorization header of a REST API request. The cookie name ismycookie-stagingand needs to be sent asAuthorization: Basic <cookie_value>. - Issue: The
COOKIE_mycookie-stagingsyntax is not being substituted with the actual cookie value. When I useAuthorization: Basic COOKIE_mycookie-stagingin the Headers section, the request fails with a 401 Unauthorized error. However, when I manually paste the cookie value instead of usingCOOKIE_, the request succeeds. - What works:
-
Cookie without hyphen:
mycookie→COOKIE_mycookie -
Manual value:
Authorization: Basic xxx -
Same curl request with the cookie works perfectly
- What doesn't work:
-
COOKIE_mycookie-staging -
COOKIE_mycookie_staging
-
- Retool version & hosting setup: Self-hosted v3.300.4-stable on K8s