Skip to content

Mixed Content/CORS errors are not displayed #912

@mrseoliveira

Description

@mrseoliveira

Hi,

No error message in this code below, but not working. The problem is http API, instead of https.

let flightAPI = "http://aviation-edge.com/v2/public/flights?key=d0d178-7e0a13&depIata=OPO";
let geoAPIurl1 = "https://geocode.xyz/"
let geoAPIurl2 = "?json=1&auth=15227473486649212337x1987"
let lat;
let lon;
let geoAPI;

function setup(){
    noCanvas();
    loadJSON(flightAPI, gotData)   
 
}

function gotData(data){
     lat = data[0].geography.latitude;
     lon = data[0].geography.longitude;
     geoAPI = geoAPIurl1+lat +','+lon+geoAPIurl2;
     loadJSON(geoAPI, gotDataGeo)
 }

function gotDataGeo(data){
	console.log('a')
    console.log(data.city);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Priority:HighShould be addressed soon but not critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions