DicomServiceCors

data class DicomServiceCors(val allowCredentials: Boolean? = null, val allowedHeaders: List<String>? = null, val allowedMethods: List<String>? = null, val allowedOrigins: List<String>? = null, val maxAgeInSeconds: Int? = null)

Constructors

Link copied to clipboard
constructor(allowCredentials: Boolean? = null, allowedHeaders: List<String>? = null, allowedMethods: List<String>? = null, allowedOrigins: List<String>? = null, maxAgeInSeconds: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether to allow credentials in CORS. Defaults to false.

Link copied to clipboard
val allowedHeaders: List<String>? = null

A list of allowed headers for CORS.

Link copied to clipboard
val allowedMethods: List<String>? = null

A list of allowed methods for CORS.

Link copied to clipboard
val allowedOrigins: List<String>? = null

A list of allowed origins for CORS.

Link copied to clipboard
val maxAgeInSeconds: Int? = null

The maximum age in seconds for the CORS configuration (must be between 0 and 99998 inclusive).