Hi everyone:
Reaching out for support with a sudden intermittent issue with receiving 400 Bad Request - Cookie Size Too Large errors.
What's happened:
Any ideas?
It’s weird to point the finger at Marketo here, when by your own admission it affects pages under your parent domain (fourseasons.com) which can all set 1st-party cookies!
Marketo’s servers have a max Cookie: header size of ~8000 bytes. That header includes all cookies set by all servers who are permitted to set cookies at the parent fourseasons.com. Any JS running on those servers can set a cookie at fourseasons.com, be it analytics JS, ad JS, or any other code.
What you really need is a snapshot of the whole document.cookie value (in Dev Tools » Console) at the time it fails. Simple as that. That’ll show you which individual cookie(s) were giant enough to put you over the limit. I highly doubt those cookies were set by Marketo JS libraries or Marketo webservers.
Thanks, Sanford. I have my web team involved too, but they're not able to reproduce yet. I'll send them your advice above, and as soon as we receive the error again, we can investigate with these steps.