Skip to content

Commit ff866ba

Browse files
committed
fixing links in the handler/cors doc
Signed-off-by: Lewis Birks <22620804+lewisbirks@users.noreply.github.com>
1 parent e69b549 commit ff866ba

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

docs/asciidoc/handlers/cors.adoc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ request when it requests a resource that has a different origin (domain, protoco
77
its own origin.
88

99
Jooby supports CORS out of the box. By default, **CORS requests will be rejected**.
10-
To enable processing of CORS requests, use the javadoc:CorsHandler[]:
10+
To enable processing of CORS requests, use the javadoc:handler.CorsHandler[]:
1111

1212
.CorsExample
1313
[source, java, role = "primary"]
1414
----
1515
import io.jooby.Jooby;
16-
import io.jooby.CorsHandler;
16+
import io.jooby.handler.CorsHandler;
1717
...
1818
{
1919
@@ -28,7 +28,7 @@ import io.jooby.CorsHandler;
2828
.Kotlin
2929
[source, kotlin, role = "secondary"]
3030
----
31-
import io.jooby.CorsHandler
31+
import io.jooby.handler.CorsHandler
3232
...
3333
{
3434
use(CorsHandler()) <1>
@@ -49,13 +49,14 @@ Default options are:
4949
- allowed headers: `X-Requested-With`, `Content-Type`, `Accept` and `Origin`
5050
- max age: `30m`;
5151
52-
To customize default options use javadoc:Cors[]:
52+
To customize default options use javadoc:handler.Cors[]:
5353

5454
.Cors options
5555
[source, java, role = "primary"]
5656
----
5757
import io.jooby.Jooby;
58-
import io.jooby.CorsHandler;
58+
import io.jooby.handler.Cors;
59+
import io.jooby.handler.CorsHandler;
5960
...
6061
{
6162
Cors cors = new Cors()
@@ -73,7 +74,7 @@ import io.jooby.CorsHandler;
7374
[source, kotlin, role = "secondary"]
7475
----
7576
import io.jooby.Jooby
76-
import io.jooby.CorsHandler
77+
import io.jooby.handler.CorsHandler
7778
import io.jooby.cors
7879
...
7980
{
@@ -110,7 +111,8 @@ cors {
110111
[source, java, role = "primary"]
111112
----
112113
import io.jooby.Jooby;
113-
import io.jooby.CorsHandler;
114+
import io.jooby.handler.Cors;
115+
import io.jooby.handler.CorsHandler;
114116
...
115117
{
116118
Cors cors = Cors.from(getConfig()); <1>
@@ -127,7 +129,7 @@ import io.jooby.CorsHandler;
127129
[source, kotlin, role = "secondary"]
128130
----
129131
import io.jooby.Jooby
130-
import io.jooby.CorsHandler
132+
import io.jooby.handler.CorsHandler
131133
...
132134
{
133135
val cors = Cors.from(config) <1>

0 commit comments

Comments
 (0)