fixed apiUrl for cockpit
Merged 'dev'.