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] can't debug requests #2055

Closed
thewh1teagle opened this issue Nov 15, 2024 · 2 comments · Fixed by #2079
Closed

[http] can't debug requests #2055

thewh1teagle opened this issue Nov 15, 2024 · 2 comments · Fixed by #2079
Labels
plugin: http question Further information is requested

Comments

@thewh1teagle
Copy link
Contributor

with fetch i can see plain request/response body
with tauri fetch i can't
does it possible? and if not how can we improve it?

@thewh1teagle
Copy link
Contributor Author

thewh1teagle commented Nov 19, 2024

It's actually an issue, not a bug. I literally copied pasted working curl command as fetch command and I get 401 (unauthrized)
the feature unsafe-headers enabled.

I fixed the issue by adding

Origin: '',
Referer: '',

For unsetting the headers. but it was very hard to debug I needed to manually construct curl requests from fetch and try outside of tauri

@amrbashir
Copy link
Member

I have added tracing behind a feature flag in #2079, so you can use tauri-plugin-log or CrabeNebula devtools to inspect the requests and responses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: http question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants