Zum Inhalt springen

Permissive CORS (ARCH9121)

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

Key swift.security.permissive-cors · Severity warning · Category security · CWE CWE-942

Flags CORSMiddleware configured with allowedOrigin: .all, especially together with allowCredentials.

CORSMiddleware.Configuration(allowedOrigin: .all, ...)
CORSMiddleware.Configuration(allowedOrigin: .custom("https://app.example.com"), ...)

List the exact origins; never combine .all with credentials.