[yew-devel] [PATCH yew-comp 0/2] make http wasm client get fresh csrf tokens from index document

Shannon Sterz s.sterz at proxmox.com
Wed Dec 17 15:26:12 CET 2025


this series makes the http wasm client respect the fresher csrf token
in the document index. fixing a bug that would kick out users after
the first non-GET request. for a more detailed explanation see patch
1.

changes since v1:

* split csrf token portion of extract_auth_from_cookie into a separate
  function and add better documentation (thanks @ Thomas Lamprecht)
* add a patch that refactors extract_auth_from_cookie to return a
  ticket and be more efficient and legible.

Shannon Sterz (2):
  http wasm client: load csrf token from global Proxmox object
  http wasm client: refactor extract_auth_from_cookie to return a Ticket

 src/http_client_wasm.rs | 54 ++++++++++++++++++++++++++---------------
 1 file changed, 35 insertions(+), 19 deletions(-)

--
2.47.3





More information about the yew-devel mailing list