CORS

@Serializable
data class CORS(val allowedMethods: MutableSet<RASHttpMethods> = mutableSetOf(RASHttpMethods.Delete, RASHttpMethods.Post), val allowedHeaders: MutableSet<RASHttpHeaders> = mutableSetOf( RASHttpHeaders.ContentType, RASHttpHeaders.Authorization ), val allowedHosts: MutableSet<String> = mutableSetOf("localhost"))

Constructors

Link copied to clipboard
constructor(allowedMethods: MutableSet<RASHttpMethods> = mutableSetOf(RASHttpMethods.Delete, RASHttpMethods.Post), allowedHeaders: MutableSet<RASHttpHeaders> = mutableSetOf( RASHttpHeaders.ContentType, RASHttpHeaders.Authorization ), allowedHosts: MutableSet<String> = mutableSetOf("localhost"))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard