reading cookie value from API response and setting cookie in toddle.
chromonav
4 months ago
Aug 3, 2024, 10:43 AM
use-case brief: calling api /api/method/login with username and password. i recieve 201 response with empty body but cookie is set. Because of CORS restrictions i need to use toddle to proxy. How can i read the cookie and set it in the toddle site.
Andreas Møller
4 months ago
Aug 4, 2024, 5:40 AM
Currently our API does not support reading response headers (like cookies) but we are working on a new version that will. This is assuming that the cookie is not set as http only. In that case toddle won’t be able to read it.