From cd6039fc15de55b12a01fef3fb531f69f5c57142 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 28 Dec 2023 10:04:52 +0100 Subject: [PATCH] fix todo link in CORS doc (#386) --- docs/src/main/paradox/common/cors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/paradox/common/cors.md b/docs/src/main/paradox/common/cors.md index 44f610f6c..bd05123c1 100644 --- a/docs/src/main/paradox/common/cors.md +++ b/docs/src/main/paradox/common/cors.md @@ -62,7 +62,7 @@ final Route route = cors(settings, () -> { ## Rejection The CORS directives can reject requests using the `CorsRejection` class. Requests can be either malformed or not allowed to access the resource. -A rejection handler is provided by the library to return meaningful HTTP responses. Read the pekko documentation (link TODO) to learn more about rejections, or if you need to write your own handler. +A rejection handler is provided by the library to return meaningful HTTP responses. Read the @ref[Pekko documentation](../routing-dsl/rejections.md) to learn more about rejections, or if you need to write your own handler. Scala : @@snip [CorsServerExample.scala](/docs/src/test/scala/docs/http/scaladsl/server/cors/CorsServerExample.scala) { #cors-server-example }