I am using trying to fetch data from wp to react via rest api. There are two API's I am working upon. First one is wp/v2/pages is working fine (With credentials it is authorized) but,
Second api wp/v2/menu-items or wp/v2/menus both are showing that you are not allowed to view this content (Even I am using the same credentials for authorization.
wp-admin/profile.php
, i.e. the page for editing your own profile?curl https://your-domain/wp-json/wp/v2/menus -u "YOUR USERNAME:YOUR APPLICATION PASSWORD"