hey there, just asking confirmation abt something:
in this
https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/multiple-clients
docs sections is explained how to implement an origin function to accept multiple frontend clients.
Is that right that, in addition to those instructions, the cors origin should also be set to "*" (which is missing in the docs)?
r
rp_st
12/26/2023, 5:23 AM
hey @nik2208.2208 you should not set cors to *, as that will cause issues with sending cookies. Instead, cors libraries have way to provide dynamic origins as well.
n
nik2208.2208
12/27/2023, 10:50 AM
ok, got it. One more question: do I need an error interceptor in the frontend tohandle and reroot backend 40* error to show the login page or it is all handled automaticallìy?
r
rp_st
12/27/2023, 10:52 AM
Are you using our pre built ui?
rp_st
12/27/2023, 10:52 AM
and using SessionAuth?
rp_st
12/27/2023, 10:52 AM
If yes for both, then the redirection happens on its own