What if we are using separate domain for APIs ?
Can we store the cookies in our SPA when we are consuming APIs (domain y) from domain x ?
Now a days browsers blocking 3r party cookies .. if we do so it can break the site right ?
You Can setup cookies with cors by adding Access-Control-Allow-Credentials and to explicitly setup Acess-Control-Allow-Origin to your main domain.
You mean sub domain and main domain ?
Also now days its becomes common to block third party cookies in browsers .. in that case if we use diffrent domain it may break the flow right ?
Some comments have been hidden by the post's author - find out more
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What if we are using separate domain for APIs ?
Can we store the cookies in our SPA when we are consuming APIs (domain y) from domain x ?
Now a days browsers blocking 3r party cookies .. if we do so it can break the site right ?
You Can setup cookies with cors by adding Access-Control-Allow-Credentials
and to explicitly setup Acess-Control-Allow-Origin to your main domain.
You mean sub domain and main domain ?
Also now days its becomes common to block third party cookies in browsers .. in that case if we use diffrent domain it may break the flow right ?