You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Dex Team, I'm working on a Gateway app (Golang) that it's in charge of connecting with a prepared Dex instance to handle authentication for our Users, the idea is that when a User hits any of our protected backend routes from our client app, if the user is not authenticated, the request should be redirected to Dex login page to start the authentication flow.
Our current problem is that when the server tries this redirection in a local environment (localhost), the browser blocks this attempt do to preflight regulations (redirection's not allowed), looking at Dex's source code, I see there is no functionality around handling OPTIONS request and CORS for authentication routes.
I see there was actually a open issue for this but apparently never got resolved #939 , are you planning to support this in the future? or what I'm trying to do is a bad approach ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello Dex Team, I'm working on a Gateway app (Golang) that it's in charge of connecting with a prepared Dex instance to handle authentication for our Users, the idea is that when a User hits any of our protected backend routes from our client app, if the user is not authenticated, the request should be redirected to Dex login page to start the authentication flow.
Our current problem is that when the server tries this redirection in a local environment (localhost), the browser blocks this attempt do to preflight regulations (redirection's not allowed), looking at Dex's source code, I see there is no functionality around handling OPTIONS request and CORS for authentication routes.
I see there was actually a open issue for this but apparently never got resolved #939 , are you planning to support this in the future? or what I'm trying to do is a bad approach ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions