Changing site address URL breaks saving posts
-
My main WordPress site is hosted at example.com while my wordpress installation is hosted at api.example.com.
I had to do this since I wanted a React front end while still using the Rest API. It works really well even though I had to do some workarounds for my links to appear properly.
Here’s the problem though, if I change the “Site Address (URL)” to
https://example.com
rather thanhttps://api.example.com
I’m not able to create, update or save drafts from WordPress’ admin panel.I keep getting the error
Updating failed. Error message: The response is not a valid JSON response.
I know the Gutenberg editor uses the Rest API to autosave changes and such, but I’m not sure why changing this setting would break it. Is it because my WordPress is installed on a subdomain rather than a subfolder?
- The topic ‘Changing site address URL breaks saving posts’ is closed to new replies.