trait CorsDirectives extends AnyRef

Directives for CORS, cross origin requests.

For an overview on how CORS works, see the MDN web docs page on CORS: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS CORS is part of the WHATWG Fetch "Living Standard" https://fetch.spec.whatwg.org/#http-cors-protocol

This implementation is based on the akka-http-cors project by Lomig Mégard, licensed under the Apache License, Version 2.0.

Source
CorsDirectives.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CorsDirectives
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def cors(settings: CorsSettings): Directive0

    Wraps its inner route with support for the CORS mechanism, enabling cross origin requests using the given cors settings.

  2. def cors(): Directive0

    Wraps its inner route with support for the CORS mechanism, enabling cross origin requests using the default cors configuration from the actor system.