Skip to content

Permissive CORS (ARCH8121)

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

Flags CORS configured with allowedOrigins("*") / anyHost() / allowedOriginPatterns("*"), especially together with credentials.

registry.addMapping("/**").allowedOrigins("*").allowCredentials(true)
registry.addMapping("/**").allowedOrigins("https://app.example.com")

List the exact origins; never combine a wildcard with credentials.