Bad Request: Header Field Too Long [Error Fix]

Issues with the HTTP request header being sent from the browser

by Loredana Harsana
Loredana Harsana
Loredana Harsana
Managing Editor
Loredana is a passionate writer with a keen interest in PC software and technology. She started off writing about mobile phones back when Samsung Galaxy S II was... read more
Fact checked by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • When a client, such as a browser, requests a server, an HTTP code is dispatched in response.
  • This issue usually occurs due to problems with the cache, so you might have to clear it.
bad request header field too long error
Struggling with various browser issues? Try a better option: Opera OneYou deserve a better browser! Over 300 million people use Opera One daily, a fully-fledged navigation experience coming with various built-in packages, enhanced resource consumption, and great design. Here's what Opera One can do:
  • Optimize resource usage: Opera One uses your Ram more efficiently than Brave
  • AI and User Friendly: New feature directly accessible from the sidebar
  • No ads: Built-in Ad Blocker speeds up the loading of pages and protects against data-mining
  • Gaming friendly: Opera GX is the first and best browser for gamers
  • Get Opera One

Have you ever encountered the frustrating Bad request header field too long error message while browsing a website on Google Chrome, Firefox, or Microsoft Edge? If so, fret not!

The matter at hand bears resemblance to the HTTP error 400 that we previously addressed in our guide.

Before addressing the issue at hand, we must examine its underlying cause.

Why does my PC keep saying Bad request: header field too long?

This is mostly a cookie issue, and the following might be the reasons:

  • This issue typically arises when using the Nginx web server.
  • In some cases, websites utilizing this software may restrict browser cookies of a specific size.
  • It might experience corruption in the cookie stored in the browser.

Fortunately, there are ways to rectify this cookie problem. Let’s explore some solutions.

How can I fix Bad request: header field too long?

1. For Google Chrome

  1. Open Google Chrome, click the three dots at the top far right, and click the History section.
  2. Next, click Clear browsing data

  3. Now set the time range to All Time. Select Cookies and other site data & Cached images and files and lastly choose Clear Data.

2. For Mozilla Firefox

  1. Open Mozilla Firefox, click on the Tools bar at the top right corner and choose History.

  2. Next, choose Clear Recent History.

  3. In the Clear recent history menu, choose the time range to Everything.

  4. Check the options, Cookies, Active Logins, Cache, Site settings, and Offline website data, lastly click Clear now.
  5. Restart Firefox to check if the bad request: header field is too long has been fixed.

After doing that, the problem should be gone in Firefox.

3. Microsoft Edge

  1. Click the three horizontal dots in the upper right-hand corner and click Settings.

  2. Now, click the Privacy, search, and Services tab. Go to the Choose what to clear part and click Choose what to clear option. 

  3. Now check the Cookies and saved website data option and click Clear. Then, restart the browser and check to see if the issue has been fixed.

We hope this guide has provided you with the necessary assistance in resolving your concern. As you have witnessed, rectifying this problem is not as daunting as it may seem at first glance.

If you encounter any more obstacles, we suggest looking into our guide on Website is not accessible error. This resource may offer comparable solutions to your issue.

Your feedback would be greatly appreciated, so please leave a comment below and inform us of the most effective solution you found.

This article covers:Topics: