https://kotlinlang.org logo
#ktor
Title
# ktor
p

poohbar

12/31/2018, 8:14 PM
anybody know what origins are enabled by default when one does
Copy code
install(CORS)
?
b

bdawg.io

12/31/2018, 10:34 PM
According to the implementation, it should default to the same origin as host name of the server. https://github.com/ktorio/ktor/blob/43b8efeb6d1bf568359212afb3f862532cff3976/ktor-server/ktor-server-core/jvm/src/io/ktor/features/CORS.kt#L270
p

poohbar

01/01/2019, 4:20 PM
I see, thanks!