• Hello, my blog is hosted under
    https://blog.domain.com, and I want to host it under
    https://www.domain.com/blog.

    By modifying the site url through the Settings Dashboard, the “read” version of the blog is correct, but I can’t edit it anymore.

    After inspection of the http requests made, my requests to the REST API are also re-directed to https://www.domain.com/blog/wp-json.

    The issue is that all my authentication cookies are attached to the domain blog.domain.com, thus making all the requests to the REST API fail in HTTP 403 with the error response:

    {
      "code": "rest_cookie_invalid_nonce",
      "message": "Cookie nonce is invalid",
      "data": {
        "status": 403
      }
    }

    I have checked that this is the correct symptom by modifying the cookies domain’s to .domain.com and my HTTP requests are now valid.

    What steps can I follow to fix this?

    Thanks!

    • This topic was modified 4 years, 4 months ago by whisust.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Changing Site URL breaks access to the REST API’ is closed to new replies.