hexagon
Toggle table of contents
4.0.1
jvm
Platform filter
jvm
Switch theme
Search in API
hexagon
http_server
/
com.hexagontk.http.server.callbacks
/
CorsCallback
/
CorsCallback
Cors
Callback
constructor
(
allowedOrigin
:
String
=
"*"
,
allowedMethods
:
Set
<
HttpMethod
>
=
ALL
,
allowedHeaders
:
Set
<
String
>
=
emptySet()
,
exposedHeaders
:
Set
<
String
>
=
emptySet()
,
supportCredentials
:
Boolean
=
true
,
preFlightStatus
:
Int
=
NO_CONTENT_204
,
preFlightMaxAge
:
Long
=
0
)
constructor
(
allowedOrigin
:
Regex
,
allowedMethods
:
Set
<
HttpMethod
>
=
ALL
,
allowedHeaders
:
Set
<
String
>
=
emptySet()
,
exposedHeaders
:
Set
<
String
>
=
emptySet()
,
supportCredentials
:
Boolean
=
true
,
preFlightStatus
:
Int
=
NO_CONTENT_204
,
preFlightMaxAge
:
Long
=
0
)