hexagon
1.6.0
http_server
/
com.hexagonkt.http.server
/
CorsSettings
/
CorsSettings
Cors
Settings
fun
CorsSettings
(
allowedOrigin
:
String
=
"*"
,
allowedMethods
:
Set
<
Method
>
=
ALL
,
allowedHeaders
:
Set
<
String
>
=
emptySet()
,
exposedHeaders
:
Set
<
String
>
=
emptySet()
,
supportCredentials
:
Boolean
=
true
,
preFlightStatus
:
Int
=
204
,
preFlightMaxAge
:
Long
=
0
)
Content copied to clipboard
fun
CorsSettings
(
allowedOrigin
:
Regex
,
allowedMethods
:
Set
<
Method
>
=
ALL
,
allowedHeaders
:
Set
<
String
>
=
emptySet()
,
exposedHeaders
:
Set
<
String
>
=
emptySet()
,
supportCredentials
:
Boolean
=
true
,
preFlightStatus
:
Int
=
204
,
preFlightMaxAge
:
Long
=
0
)
Content copied to clipboard