I was looking through the <kratos config editor> w...
# _newcomer
b
I was looking through the kratos config editor when I came across this (see attached image) I could guess what this does, however I'd really like a description.
Nevermind, I think I figured out what it is. I decided to dig through the repo a bit and found myself the kratos/cmd/daemon/serve.go file. There I found out that you guys use the rs/cors package (so essentially kratos is just exposing the
OptionsPassthrough
parameter). I guess my confusion originated from why this option was exposed in the first place. Because kratos is kind-of the end point for a CORS preflight request, I struggled to find a solid reason for why this should be exposed at all. I guess its just best practise?
m
Not sure why it is exposed to be honest, never had a case where you need this though 🤔 so you can most likely disregard