CORS

org.http4s.server.middleware.CORS$
object CORS

Implements the CORS protocol. The actual middleware is a CORSPolicy, which can be obtained via policy.

Attributes

See also
Source
CORS.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CORS.type

Members list

Value members

Concrete fields

The default CORS policy:

The default CORS policy:

  • Sends Access-Control-Allow-Origin: *
  • Sends no Access-Control-Allow-Credentials
  • Sends no Access-Control-Expose-Headers
  • Sends Access-Control-Allow-Methods: GET, HEAD, POST
  • Reflects request's Access-Control-Request-Headers as Access-Control-Allow-Headers
  • Sends no Access-Control-Max-Age

Attributes

Source
CORS.scala