FIX Implementation of a Luracast recommandation for the REST api server (#7370)
This commit is contained in:
parent
d5966f944f
commit
cc7aee6c3e
@ -58,7 +58,7 @@ class DolibarrApi
|
||||
$this->r = new Restler($production_mode, $refreshCache);
|
||||
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root));
|
||||
$urlwithroot=$urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
|
||||
$this->r->setBaseUrls($urlwithroot);
|
||||
$this->r->setBaseUrls(DOL_MAIN_URL_ROOT, $urlwithroot);
|
||||
$this->r->setAPIVersion(1);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user