Skip to content

Loading data from non-HTTPS sources #109

Closed
@shiffman

Description

@shiffman

I think this is related to p5-serial/p5.serialserver#33.

I was helping a student with a homework using data from a "moon phase" API: http://api.usno.navy.mil/moon/phase?date=9/23/2016&nump=1

The following code:

var data;
function preload() {
  data = loadJSON('http://api.usno.navy.mil/moon/phase?date=9/23/2016&nump=1');
}
function setup() {
}

results in this error:

screen shot 2016-09-23 at 2 06 27 pm

Is there anything we can do about this or is this something we have to live with for non HTTPS APIs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions