ember-fastboot / ember-fastboot/ember-cli-fastboot

Is there a way to handle cookies on the fastboot app server

Open
#910 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
850
Forks
161
Avg merge
17h 45m
Merged PRs (30d)
19

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.