• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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