reading cookie value from API response and setting cookie in toddle.
chromonav
7 months ago
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
7 months ago
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.