I have deployed an Angular 5 application to Heroku (HTTPS site) that retrieves json data (HTTP request endpoint) from a third party.
I get the following Mixed Content blocked error:
NOTE: The HTTP request endpoint can't be changed to HTTPS.
This is my call to the request endpoint:
constructor(private http: HttpClient) { }
private httpOptions = {
headers: new HttpHeaders({
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'Content-Type',
'Access-Control-Allow-Methods': 'GET, OPTIONS',
'Content-Type': 'application/json'
})
};
this.http.get<Skater[]>(this.skaterServiceUrl, this.httpOptions);
How can I make the request from an HTTPS site to a HTTP request endpoint?
All help will be greatly appreciated. Thank you for your time.