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

[Bug]: The response header is missing #1699

Open
W2426566602 opened this issue May 11, 2024 · 5 comments
Open

[Bug]: The response header is missing #1699

W2426566602 opened this issue May 11, 2024 · 5 comments
Labels

Comments

@W2426566602
Copy link

Describe the bug 🐞

When I use refit to access an API interface that returns a file stream, I use the browser developer tools to look at the response details, there is the file name in the response header, but when I process the response object in the code, the response header is empty

Step to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Reproduction repository

https://github.com/reactiveui/refit

Expected behavior

This should happen...

Screenshots 🖼️

No response

IDE

No response

Operating system

No response

Version

No response

Device

No response

Refit Version

No response

Additional information ℹ️

No response

@W2426566602
Copy link
Author

image

@W2426566602
Copy link
Author

image

@iwenr
Copy link

iwenr commented Jun 17, 2024

image

header在Content里面吧。。

@agabadave
Copy link

Had the exact issue, and it turned out to be related to CORs. If you are using asp.net WebAPI, consider exposing the response headers.

@ChrisPulman
Copy link
Member

Please check your CORS settings and update this issue if it's relevant, many thanks.
@agabadave thanks for your input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants