Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access a cookie on both platforms #84

Open
juanpmarin opened this issue Oct 31, 2017 · 4 comments
Open

How to access a cookie on both platforms #84

juanpmarin opened this issue Oct 31, 2017 · 4 comments

Comments

@juanpmarin
Copy link

Hi, I need to access a cookie from server and browser, I thought about use a Varian but the cookie has not static values (it's an auth token), do you know a way to access it ?
Thanks !

@triadiprabowo
Copy link

@juanpmarin have you find this solution?

@juanpmarin
Copy link
Author

@triadiprabowo yes, but not using angular-ssr, I had to migrate to angular 5 and the express universal engine, angular 5 now comes with state transfer out of the box

@juanpmarin
Copy link
Author

@triadiprabowo this is the implementation that I based on
https://github.com/patrickmichalina/fusebox-angular-universal-starter/blob/master/src/client/app/shared/services/cookie.service.ts

@triadiprabowo
Copy link

@juanpmarin thank you man, it is working now. I used universal-starter (angular 5) and some setup from your given repo for cookies and state transfer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants