logoalt Hacker News

hiccuphippotoday at 12:44 PM1 replyview on HN

One more use case for Axios is it automatically follows redirects, forwarding headers, and more importantly, omiting or rewriting the headers that shouldn't be forwarded for security reasons.


Replies

reactordevtoday at 4:36 PM

fetch automatically follows redirects, fetch will forward your headers, omitting or rewriting headers is how security breaks… now a scraper got through because it’s masquerading as Chrome.