Fixed Cross domain issues

made API calls relative path