toggle menu
kotlin-common
common
switch theme
search in API
kotlin-common-web
/
com.huanshankeji.web.cors
Package-level
declarations
Functions
Properties
Properties
CACHE_
PREFLIGHT_
MAX_
AGE
Link copied to clipboard
const
val
CACHE_PREFLIGHT_MAX_AGE
:
Int
=
86400
CORS_
LOCALHOST_
ALL_
PORTS_
ALLOWED_
ORIGIN_
PATTERN
Link copied to clipboard
const
val
CORS_LOCALHOST_ALL_PORTS_ALLOWED_ORIGIN_PATTERN
:
String
Functions
cors
Allowed
Origin
Pattern
Link copied to clipboard
fun
corsAllowedOriginPattern
(
isHttps
:
Boolean
,
host
:
String
,
port
:
Int
?
=
null
)
:
String
origin
Link copied to clipboard
fun
origin
(
isHttps
:
Boolean
,
host
:
String
,
port
:
Int
?
)
:
String