added cors support when requesting server api

Signed-off-by: Michal Bínovský <mbinovsky@sygic.com>