Cleartext HTTP (ARCH9118)
Ce contenu n’est pas encore disponible dans votre langue.
Key swift.security.cleartext-http · Severity warning · Category security · CWE CWE-319
Flags hardcoded http:// endpoints (localhost excepted).
Incorrect
Section titled “Incorrect”let api = URL(string: "http://api.example.com/v1")!Correct
Section titled “Correct”let api = URL(string: "https://api.example.com/v1")!Use https:// for every non-local endpoint.