Unable to Update Post when Changing Site URL

I have a wordpress subdomain on my site: https://cdn.example.com, however I am proxying this site to be displayed on my root domain for SEO purposes. Whenever I navigate to https://example.com/blog I am shown content from the CDN subdomain.

However, I updated the wordpress site URL to be https://example.com/blog so that the hyperlinks are directed to the blog subpath. This works fine, but breaks the functionality for updating posts. It is attempting to send the update requests to the wp API endpoint at https://example.com/blog

Is there any solution other than going through the wordpress code and updating the update URL to my cdn subdomain?

Topic site-url Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.