The API is hosted on https. When I try to request the API, the request is made to http instead of https which gives error result.
Mixed Content: The page at .... ....was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint
How to set it to make request on https instead of http.