Issue with wp-json api

Started by smartelite, June 02, 2020, 05:13:23 AM

Previous topic - Next topic

smartelite

Hello

Good Day

I have an issue with wp-json api .

It show 403 for api path

and put is not working

also api save not working

please help



smartelite

Hello

Good day!


I resolve this issue by add  "Require all granted" under

WebServers Configuration Editor > apache >  /usr/local/apache/conf.d/vhosts/

open website host without ssl


<Directory "/home/example/public_html">
Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
                Require all granted
</Directory>


With ssl


<Directory "/home/example/public_html">
Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
                Require all granted
SSLRequireSSL
</Directory>





It will fix any issue with api and error 404 / 403 /410 also nod js app it will work.