Zum Inhalt springen

Cleartext HTTP (ARCH3118)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key typescript.security.cleartext-http · Severity warning · Category security · CWE CWE-319

Sending sensitive data over http:// lets the traffic be sniffed and tampered with on the network. Make all external calls over TLS.

const res = await fetch("http://api.example.com/login", {
method: "POST",
body: JSON.stringify({ username, password }),
});
const res = await fetch("https://api.example.com/login", {
method: "POST",
body: JSON.stringify({ username, password }),
});

Use https:// for all endpoints; never carry sensitive traffic over plaintext HTTP.