D'Arcy
D'Arcy

Reputation: 41

Do I run significant risks by having my API called as HTTP rather than HTTPS?

I have a GET API that is called by a JS snippet to offload some computation from the browser. There is no reason that any actual user would directly call the API (and would be a violation of our ToS if they did).

Is there a significant risk if we call this API as a http request rather than https? It should reduce our response times, however we're not sure if this represents a vulnerability to either us or our users.

Upvotes: 0

Views: 180

Answers (2)

BinarSkugga
BinarSkugga

Reputation: 397

Yes. You risk MITM attacks or Man-in-the-middle. Someone impersonating your server and spying on your client's request and even potentially changing them.

Upvotes: 1

Chris
Chris

Reputation: 875

If you make XMLHttpRequest or fetch() requests to your HTTP API from HTTPS pages you will get mixed content errors

Upvotes: 2

Related Questions