api-examples icon indicating copy to clipboard operation
api-examples copied to clipboard

No 'Access-Control-Allow-Origin'

Open LukasBlu1 opened this issue 6 years ago • 0 comments

Hello Plesk-Team,

thank you for your great software. I want to connect to plesk with my nodejs app. But I get the following error. I followed the plesk documentation to enable api access in the panel.ini but with no success. Do you have a solution for this?

Failed to load https://domain:8443/enterprise/control/agent.php: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://domain' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

https://docs.plesk.com/de-DE/onyx/administrator-guide/plesk-administration/absichern-von-plesk/restricting-remote-access-via-plesk-api.71930/

Kind regards

LukasBlu1 avatar Jul 31 '18 21:07 LukasBlu1