Rest api auth 401 | WordPress.org

[ad_1]

HIi i’m building nextjs headless cms using wp and wc rest api currently hosting from aws lightsail we migrated from siteground.

There was no problem with data fetching, everything was working until i tried to test out my headless cms.

i hosted another website with same domain and there was a lot of conflicts, i deleted the new hosted website immediately.

but ever since all the rest api data fetching returns 401 unauthorized “You can’t not list the resources”.

I CAN’T authorize any rest api data fetch, with all the plug in i’m using

none of the authorization methods works.

doesn’t work passing em to headers even basic auth doesn’t work with username and password.

only some of them does work if i pass my consumer key and secret them into params I tried to fix it by making new website/ import back ups/ connect domain/ get fresh credentials, clear cache.

  • This topic was modified 1 hour, 47 minutes ago by ggiggity.

 

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