[GH-ISSUE #2650] [feature]: set user agent if not specified (add setting) #871

Open
opened 2026-03-16 17:30:32 +03:00 by kerem · 2 comments
Owner

Originally created by @SamJakob on GitHub (Sep 10, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2650

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Ideally, an option to set the user agent string (if one wasn't specified in 'Headers') to some default value for Hoppscotch could be added (and this functionality could be toggled with a setting in Hoppscotch with it being on by default).

Why should this be worked on?

This would be useful as it can be easy to forget to add it, yet essential if some services are routed through CloudFlare or other services that tend to require a User-Agent to be specified. Perhaps this could be expanded to other default headers too?

Originally created by @SamJakob on GitHub (Sep 10, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2650 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary Ideally, an option to set the user agent string (if one wasn't specified in 'Headers') to some default value for Hoppscotch could be added (and this functionality could be toggled with a setting in Hoppscotch with it being **on** by default). ### Why should this be worked on? This would be useful as it can be easy to forget to add it, yet essential if some services are routed through CloudFlare or other services that tend to require a User-Agent to be specified. Perhaps this could be expanded to other default headers too?
Author
Owner

@SamJakob commented on GitHub (Sep 10, 2022):

I've been looking at implementing this from the proxy side, but rather than double-implementing it on the proxy, this could probably just be made a feature of Hoppscotch directly as it benefits all users rather than just those of the proxy.

(See also: https://github.com/hoppscotch/proxyscotch/issues/46)

<!-- gh-comment-id:1242817099 --> @SamJakob commented on GitHub (Sep 10, 2022): I've been looking at implementing this from the proxy side, but rather than double-implementing it on the proxy, this could probably just be made a feature of Hoppscotch directly as it benefits all users rather than just those of the proxy. (See also: https://github.com/hoppscotch/proxyscotch/issues/46)
Author
Owner

@amitb-sahaj-tml commented on GitHub (Jul 30, 2024):

Is there any update on above feature request. I am facing the same issue where I had forgotten to add user-agent header due to which I was getting cloudflare error

<!-- gh-comment-id:2258232767 --> @amitb-sahaj-tml commented on GitHub (Jul 30, 2024): Is there any update on above feature request. I am facing the same issue where I had forgotten to add user-agent header due to which I was getting cloudflare error
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#871
No description provided.