Tfw you realize the reason your JSON api POST didn't work is because the hostname doesn't have the leading "www."