Ok, solved. The problem comes from Cloudflare and it’s https things. If you have the same problem just turn “Automatic HTTPS Rewrites” on under the “Crypto” settings tab on the cloudflare dashboard for the site you have this problem with. It should fix everything almost instantly.