Vì sao bên network có trả về content-disposition,
mà khi e dùng axios thì nó không trả về content-disposition.
Thanks all!
We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge.
Vì sao bên network có trả về content-disposition,
mà khi e dùng axios thì nó không trả về content-disposition.
Thanks all!
Với nginx, em add: Access-Control-Expose-Headers: Content-Disposition
Với nodejs, express: em làm thế này nhé:
app.use(cors({ origin: 'http://localhost:[port]', credentials: true, exposedHeaders: ['Content-Disposition'] }))
Với netcore, thì em bổ sung cấu hình vào file web.config nhé:
<code><span><<span>customHeaders</span>></span> <span><<span>add</span> <span>name</span>=<span>"Access-Control-Expose-Headers"</span> <span>value</span>=<span>"Content-Disposition,X-Suggested-Filename"</span>/></span> <span></<span>customHeaders</span>></span> </code>– tvd12 1632282071000
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Input your email to receive reset password link, or if you remember your password, you can click