question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot completely remove User-Agent header

See original GitHub issue

https://github.com/axios/axios/blob/9a6abd789f91a87d701116c0d86f1cfbc3295d66/lib/adapters/http.js#L34

Is it possible to create a request with absolutely no User-Agent header? It doesn’t seem possible with the code listed here.

According to this Stackoverflow, a User-Agent is not a required header, so I imagine axios should allow this type of configuration.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

6reactions
danawoodmancommented, May 24, 2018

@JustinBeckwith this is not answered as you cannot remove or change 'User-Agent'

0reactions
JustinBeckwithcommented, Apr 7, 2018

Greetings! This appears to be answered. If you’re still having any issues… please do let us know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

User-Agent header cannot be removed in jodd-http
Simply remove it from the HttpRequest using headerRemove() method or remove all default headers (there is just that one) with the headersClean() ...
Read more >
Remove User-Agent header - OSS Support
Hi, Is it possible to send a GET request without a User-Agent header (not even the default k6 or go header) with k6?...
Read more >
How to remove User-Agent for Firefox
open firefox network view with Ctrl Shift Q · load any URL you want · click on a web request and see the...
Read more >
User-Agent - HTTP - MDN Web Docs - Mozilla
The User-Agent request header is a characteristic string that lets servers and network peers identify the application, operating system, ...
Read more >
Use AWS WAF to block HTTP requests with no User-Agent ...
To check whether the HTTP request parameters are present or not, do the following: Block requests that don't contain a User-Agent header ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found