I’m getting the following error when my site’s page makes an ajax request:
400 Bad Request
Request Header Or Cookie Too Large
When I look at the logs on my server I can see that this request stops at Cloudflare and does not come through to my server.
I think that the problem is because the referer (sic) in the Header is massive and there’s nothing I can do about that because the browser inserts this and does not allow the developer to override this value. Any ideas on how I can solve this problem?
Kudos to Cloudflare for saying that it’s the Request Header/Cookie that’s the problem and not just returning a 400. If Cloudflare staff/developers are reading this it would also be incredibly useful if a breakdown (list) of headers/cookies and their sizes were provided to assist the developer in understanding the problem better.