• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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