stevermeister/ngx-cookie-service

How to get Server's cookie in Front End

astechnolabs-html opened this issue · 1 comments

Describe the bug

Hi,

I am using latest version of iONIC. and I am trying to login using frappe framework APIs.

Now, Frappe generates Session ID on server side, and set it in server's Response header -> Set-Cookie

I want to access that "Set-Cookies" in front-side, as it contains session ID.

here is a screenshot what I want to access.

image

Steps to Reproduce

Please provide a link to a minimal reproduction of the bug. StackBlitz, CodePen or CodeSanBox

Expected behaviour

What version of the library you see this issue?

Current

What version of Angular are you using?

Angular 11

Screenshots

image

Desktop? Please complete the following information

No response

Mobile? Please complete the following information

No response

Anything else?

No response

@astechnolabs-html when server returns cookies with Set-Cookie, the browser adds them automatically. You don't have to set them. If you still want to access, use get() method after browser sets them