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

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

Open
st-h opened this issue Feb 26, 2023 · 0 comments
Open

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

st-h opened this issue Feb 26, 2023 · 0 comments

Comments

@st-h
Copy link

st-h commented Feb 26, 2023

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.

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

1 participant