Same problem here. I am using Cloudflare too. Seeing Cloudflare mentioned a couple of times here I logged into it to check my settings and saw that the SSL encryption mode was set to “Flexible”. I changed that to “Full” and my posts now get published. Note: if it matters I had already had the “Always Use HTTPS” option enabled.