• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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