You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Cookies saved on angular SSR are returned as undefined while values are there in browser cookies. This is happening only on the HTTPS site with localhost everything is working as expected.
To Reproduce
Steps to reproduce the behavior:
Save cookies on the server-side and use them on the server-side also and you will get the undefined value.
Environment:
Angular version [11]
Angular Universal version [11]
ngx-cookie : ["^5.0.2"],
ngx-cookie-backend: ["^5.0.2"]
The text was updated successfully, but these errors were encountered:
Based on skimming the source code. Its because when you set a cookie on SSR you set it to the response object. When you read cookies the service reads from the request object.
The issue I created #465 may be duplicate, although the issue I'm experiencing is also running SSR in dev on localhost. Its possible if the localhost run being processed was not using SSR, that the experience would work. This is why it could potentially be a duplicate issue.
Additionally the issue may have been tough to track down without knowing multiple cookies on a domain needed to be set.
Description
Cookies saved on angular SSR are returned as undefined while values are there in browser cookies. This is happening only on the HTTPS site with localhost everything is working as expected.
To Reproduce
Steps to reproduce the behavior:
Environment:
The text was updated successfully, but these errors were encountered: