Discovery/intermediate_sessions/exchange getting 404 error intermediate session not found in custom domain

I am using stytch b2b prebuilt ui client and am getting
discovery/intermediate_sessions/exchange getting 404 error intermediate session not found in custom domain but working in localhost.

Hey Salim – thanks for posting!

This generally happens when the frontend JavaScript SDK isn’t able to properly set or access session cookies on the domain where it’s running.

Are you currently specifying any cookieOptions when initializing your Stytch SDK client?