CORSConfig

@deprecated("Deficient. See https://github.com/http4s/http4s/security/advisories/GHSA-52cf-226f-rhr6.", "0.21.27")
final class CORSConfig

CORS middleware config options. You can give an instance of this class to the CORS middleware, to specify its behavior

Companion:
object
Deprecated
class Object
trait Matchable
class Any

Value members

Concrete methods

override def equals(x: Any): Boolean
Definition Classes
Any
override def hashCode(): Int
Definition Classes
Any
override def toString(): String
Definition Classes
Any
def withAllowCredentials(allowCredentials: Boolean): CORSConfig
def withAllowedOrigins(allowedOrigins: String => Boolean): CORSConfig