Open
Description
I am wondering if there is any recommendation, or possibly something already built in, that would allow to handle cookies, similar to what a web browser does.
Use case:
- browser calls fastboot server
- fastboot server makes a request to backend server - response contains cookie
- fastboot server issues another request to the backend server - cookie now should be included in the request
- rendered page is served to browser & fastboot server forgets about all the cookies
I am currently working around that by manually storing the cookie data in the ember adapter after extracting it from the response. Then in the headers()
function of my application adapter, I return the cookie header when in fastboot mode, so that subsequent requests will contain that cookie information. However, I was wondering if there is be a better way to accomplish this.
Metadata
Metadata
Assignees
Labels
No labels