Skip to content
Discussion options

You must be logged in to vote

The issue is a cross-domain cookie problem . Your BFF sets the session cookie (__our-bff) on bff.someapplication.somewhere.com, but then redirects to http://localhost:9000/. Browsers cannot share cookies across different domains, so when your SPA makes requests from localhost:9000 to bff.someapplication.somewhere.com, the authentication cookie isn't sent which is why you see your user not being authenticated.

The BFF pattern requires same-domain deployment to leverage secure, http only cookies for session management.

You can read more about BFF and hosting models here: https://docs.duendesoftware.com/bff/architecture/ui-hosting/#host-the-ui-separately.

The important bits from the docs is

Y…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@norgie
Comment options

@pgermishuys
Comment options

@norgie
Comment options

Comment options

You must be logged in to vote
1 reply
@norgie
Comment options

Answer selected by norgie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
BFF
Labels
None yet
3 participants