defaultCorsConfig

fun CORSConfig.defaultCorsConfig()

Configures the default CORS (Cross-Origin Resource Sharing) settings for the application.

This configuration allows non-simple content types, disables same-origin restrictions, allows credentials, and specifically allows hosts from localhost with HTTP and HTTPS schemes.