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

Rafał Kuźmiński

01/27/2022, 5:43 PM
Hello guys, I'd like to setup CORS in Ktor server to match every of our product, which would be xxx.ourname.com and xxx.ourname.pl. I cannot find any way to set CORS by regex / predicate, only hardcoded strings. How can I do it?
r

Rustam Siniukov

01/27/2022, 9:39 PM
It’s not supported in 1.6.x, but in 2.0 you can use
host(*.<http://ourname.com|ourname.com>)
3 Views