Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[http] Cookies cannot be passed to the server in custom requests #1057

Closed
lingoh opened this issue Mar 8, 2024 · 1 comment · Fixed by #1192
Closed

[http] Cookies cannot be passed to the server in custom requests #1057

lingoh opened this issue Mar 8, 2024 · 1 comment · Fixed by #1192
Labels
bug Something isn't working plugin: http

Comments

@lingoh
Copy link

lingoh commented Mar 8, 2024

It should be that the cookie was lost after being passed from the fetch to the trust end, and cannot be passed to the remote server
in tauri-plugin-http = "2.0.0-beta.2"

the custom header was only responsible for transmitting to Rust, and Rust, as a true request, was not responsible for transmitting it as is, resulting in the server not receiving it at all

@amrbashir
Copy link
Member

could you provide an example to test this?

also try enabling the cookies feature in Cargo.toml

tauri-plugin-http = { version = "2.0.0-beta", features = ["cookies"] } 

@amrbashir amrbashir linked a pull request Apr 15, 2024 that will close this issue
@FabianLars FabianLars added bug Something isn't working plugin: http labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: http
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants