Alex Regazzo
Alex Regazzo

Reputation: 74

Send request from browser from HTTPS to HTTP, mixed content

I'm trying to make a fetch to my API hosted locally from my GitHub page, but I can't due to the mixed content error. Is there a way to get around it? I'm not sending sensitive information or whatever and I don't need a response.

Upvotes: 1

Views: 863

Answers (1)

Brad
Brad

Reputation: 163234

You need to either use HTTPS or HTTP across the board. You can't use half one and half the other.

I'm not sending sensitive information or whatever

HTTPS is not just about the encryption of the information, but also to ensure that you're connected to an authorized server. There are many ways connections get hijacked... including broken public WiFi access points with captive portals. In any case, the browser vendors don't give us much of a choice these days.

Upvotes: 3

Related Questions