case classCorsRejection(origin: Option[HttpOrigin], method: Option[HttpMethod], headers: Option[Seq[String]]) extends Rejection with Product with Serializable
Rejection created when a CORS request was invalid.
In case of an preflight request, one to three of the causes can be marked as invalid.
In case of an actual request, only the origin can be marked as invalid.
Note: when the three causes are None, the request itself was invalid. For example
the Origin header can be missing.
Linear Supertypes
Serializable, Serializable, Product, Equals, Rejection, AnyRef, Any
Rejection created when a CORS request was invalid. In case of an preflight request, one to three of the causes can be marked as invalid. In case of an actual request, only the origin can be marked as invalid.
Note: when the three causes are
None
, the request itself was invalid. For example theOrigin
header can be missing.