• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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