Is there a way to access the API using Javascript?

GINCHER

New member
Joined
Nov 30, 2016
Messages
1
Hey.
Is there a way to access DA using front-end javascript? Because the regular api doesn't serve an cross origin header - so the browser blocks the request. Is there a way to force DA to add the header, so I would be able to use the API on the front end?

(I will use ajax based on this thread: http://forum.directadmin.com/showthread.php?t=3782)
 
Hey.
Is there a way to access DA using front-end javascript? Because the regular api doesn't serve an cross origin header - so the browser blocks the request. Is there a way to force DA to add the header, so I would be able to use the API on the front end?

(I will use ajax based on this thread: http://forum.directadmin.com/showthread.php?t=3782)
Given that this would require embedding username and password in your frontend Javascript this is just an extremely bad idea.
 
Back
Top