24 lines
742 B
Plaintext
24 lines
742 B
Plaintext
cors {
|
|
# Defaults to false
|
|
#allowAnyHost = true
|
|
# Swagger UI sends "Try it out" to the contract server http://localhost:8080; pages opened elsewhere need these.
|
|
allowedHosts = [
|
|
{ host = "localhost:8080", schemes = ["http"] }
|
|
{ host = "localhost:8081", schemes = ["http"] }
|
|
{ host = "127.0.0.1:8080", schemes = ["http"] }
|
|
{ host = "127.0.0.1:8081", schemes = ["http"] }
|
|
]
|
|
|
|
# Defaults to true
|
|
#allowAnyMethod = true
|
|
#allowedMethods = [GET, POST, PATCH, PUT, DELETE, OPTIONS]
|
|
|
|
allowAnyHeader = true
|
|
#allowedHeaders = []
|
|
|
|
exposedHeaders = [X-Request-Id, X-Instance-Id, WWW-Authenticate]
|
|
|
|
# Browsers send Origin on same-origin POST too, e.g. Swagger UI served by the API itself.
|
|
allowSameOrigin = true
|
|
}
|