REST API still not working on my site.

[ad_1]

I still have an issue on my WordPress site. This site is hosted on a shared hosting, but not [Wordpress.com]).

​

`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at` [`https://www.securitronlinux.com/wp-json/wp/v2/posts/16698?_locale=user`]`. (Reason: header ‘x-http-method-override’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response).`

`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at` [`https://www.securitronlinux.com/wp-json/wp/v2/posts/16698?_locale=user`]`. (Reason: CORS request did not succeed). Status code: (null).`

The two messages above are from the Javascript console when I tried to submit a post draft in the Block Editor.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer