public interface CorsDirectives
https://www.w3.org/TR/cors/ CORS W3C Recommendation}
,
https://www.ietf.org/rfc/rfc6454.txt RFC 6454}
Modifier and Type | Method and Description |
---|---|
Directive<scala.runtime.BoxedUnit> |
cors()
Wraps its inner route with support for the CORS mechanism, enabling cross origin requests.
|
Directive<scala.runtime.BoxedUnit> |
cors(CorsSettings settings)
Wraps its inner route with support for the CORS mechanism, enabling cross origin requests.
|
Directive<scala.runtime.BoxedUnit> cors()
In particular the recommendation written by the W3C in https://www.w3.org/TR/cors/ is implemented by this directive.
The settings are loaded from the Actor System configuration.
Directive<scala.runtime.BoxedUnit> cors(CorsSettings settings)
In particular the recommendation written by the W3C in https://www.w3.org/TR/cors/ is implemented by this directive.
settings
- the settings used by the CORS filter