• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question PHP API REST doesn't work on Plesk

webSpace

New Pleskian
Hi, I'm a Plesk resseller and I'm having a problem with one of my clients that developed a PHP backend using API REST. They're receiving the error {"message":"401 Unauthorized"}.

My Plesk version is psa v12.5.30_build20160203.17 os_Windows 2008/2012.

I gave permission to IIS user to all folders under httpdocs.

The detailed error is:

XMLHttpRequest cannot load http://vovolulu.webspace.net.br/gerenciador/index.php?WebApi/index/Service/l/Album/a/lista/. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.


Is there any configuration I can do on Plesk for this to work? Thank you!
 
Back
Top