I've come across this before and believe it's related to Access-Control-Allow-Origin
. I'd expect it to be a consistent problem rather than something that happens occasionally, though.
Are you serving your frontend and backend on different addresses/ports/vhosts?