Skip to content

Question: How to send specific cookies when using in wasm? #1453

Answered by seanmonstar
m-haisham asked this question in Q&A
Discussion options

You must be logged in to vote

At the basic level, cookies are just another header you can send on a request. So, if you know exactly what you want to send, you can use client.get(url).header("cookie", "foo=bar").

If you want the more involved cookie session management feature of reqwest, it's not been ported to support WASM yet. Maybe something like #1449 will make that happen.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by seanmonstar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1404 on January 27, 2022 17:44.