Changed api url to be protocol irrelative