CyberPanel Community

ClosedWordpress api not authorized

br
bram #1

Trying to solve an issue with lightspeed cache, i want to add a domain key.

  1. The POST callback to website/wp-json/litespeed/v1/token failed.
  2. Our Current Online Server IPs was not whitelisted.

Somehow the callback is not working since i cant even acces the url. Tried disabling the firewall and everything for 10 minutes and disabling cloudflare, also adding all the ips to cloudflare whitelisting nothing seems to be working. Anyone has an idea why this is happening?

9 replies
Na
Nada #3

Updating .htaccess File

Please make sure you have added below line in .htaccess

SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

Test and let us know result :slight_smile: don’t forget to grace restart LS

br
bram #4

Yes i had modsec enabled also tried disabling all security but nothing works.

br
bram #5

Thanks, i added it but does not seem to work restarted the litespeed server

Na
Nada #7

do you use wordfence ?

NK
Nitesh Kunnath #8

I had this same issue, it should be probably application level issue (wordpress). Disable all the plugins you have in wordpress and activate only the litespeed plugin in question and check whether it solves the issue.

Na
Nada #9

:+1: yes and last time I face it because of wordfence block so he need whitelist in case of wordfence

Sign in to reply