Skip to content

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

@st-h

Description

@st-h

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions