Sporatic "Missing or invalid crumb" errors
Closed this issue · 8 comments
dphiffer commented
Seemingly resolves itself after reloading the page, but wtf?
thisisaaronland commented
I can confirm I've been seeing these too.
dphiffer commented
Ran sudo ntpdate time.nist.gov
on the server, in case it's a time drift issue.
dphiffer commented
Continued issues leads me to believe the cause was not time drift.
dphiffer commented
I tracked this down. The cause was that $GLOBALS['_SERVER']['REMOTE_ADDR']
contained the IP address of the ELB instead of the client IP.
thisisaaronland commented
Yeah, you don't want to use that. You should use the remote_addr
function:
dphiffer commented
Hmm that gives me back 192.168.18.245
on dev. I wonder if we need to tinker with how the headers are set upstream?
thisisaaronland commented
It's possible we're passing a different header. I would start with the proxy configs.
dphiffer commented
Pretty sure this is fixed now.