Anonymously Creating Posts Via Rest API

[ad_1]

Hello, is it possible to setup WordPress so that users can create posts via the Rest API? When I try `fetch(“/wp-json/wp/v2/posts”, { method: “POST”, body })`, I get a 401 error (unauthorized), which is expected. but I wonder if I can change something in the settings to allow such a kind of request.

[ad_2]
1 Comment
  1. You can send authentication information.

    You absolutely should *not* try and remove this authentication requirement. You’d just be opening yourself up to being spam city.

 

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