You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you make a request without Accept-Encoding, you will receive a 403 response.
However, if you request by adding Accept-Encoding, you will receive 200 responses.
Environment
Axios Version ^0.24.0
Adapter HTTP/HTTPS
Node.js Version v14.17.3
OS: windows10 x64
Additional context/Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
I used axios for HTML parsing in my project.
Axios receives a 403 response from a specific URL.
For example, https://www.coupang.com/
I found a solution by comparing node-fetch and axios.
The solution is to add Accept-Encoding to the header.
To Reproduce
Expected behavior
If you make a request without Accept-Encoding, you will receive a 403 response.
However, if you request by adding Accept-Encoding, you will receive 200 responses.
Environment
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: