a771dea1234
Forum Replies Created
-
Hi Jordy,
Thanks. I checked the caching points you mentioned.
- CDN is not active
- SiteGround server cache has been cleared
- Speed Optimizer is installed on the site
- the 401 error is still present
Also, the page was originally built in Replit and then used on the site, so I’m not sure whether this affects how the WordPress REST nonce is generated or passed.
Could this setup prevent X-WP-Nonce from being included correctly?
Thank you.
Hi Jordy,
Thanks for your explanation.
I have now ensured that:
- The page is served through WordPress (not static HTML anymore)
- Server cache has been cleared
- CDN is not active
However, I am still getting the 401 error on
/wp-json/mwai-ui/v1/chats/submit.The page was originally built externally (Replit) and embedded into WordPress.
Could the issue be related to missing
X-WP-Noncein custom frontend requests?What is the correct way to include the nonce when calling the mwai-ui endpoint from custom JavaScript?
Thank you!
Hi, just a quick follow-up on this issue.
I’m still experiencing the 401 (rest_forbidden) error on the endpoint
/wp-json/mwai-ui/v1/chats/submit.Any guidance would be really appreciated.
Thank you.