smallstep / cli

🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.
https://smallstep.com/cli
Apache License 2.0
3.57k stars 247 forks source link

Fix OIDC callback failures on Windows with Chrome #1136

Closed hslatman closed 3 months ago

hslatman commented 3 months ago

In https://github.com/smallstep/cli/issues/1131 a bug with the CLI was reported while running OIDC login flows on Windows and Chrome. It appears that Chrome and other Chromium based browsers now perform a CORS request first. This PR handles this request by responding with an HTTP OK.