Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Fastboot and cookies

$
0
0

@midget2000x wrote:

I’m prototyping an e-commerce setup with ember, and using cookies to maintain some state with the back-end. This works fine with ember in the browser, but not fastboot. When I print out the fsatboot request headers with this:

console.log("fastboot request", this.get('fastboot.request.headers'));

I see the cookies in there:

cookie: [ 'esaSession=%7B%22authenticated%22%3A%7B%7D%7D; cartId=b49395c6-bdcd-11e7-b990-1d6293bbf186; _tct=84030ea6ebbc8b27e4835646fdd5df0b8552225a11d780049947b5bf95037dd0' ],

But when I view the request from the back-end, no cookie in the request:

EnvironHeaders([('X-Forwarded-Server', 'my.webtool.com'), ('Connection', 'Keep-Alive'), ('Host', 'my.webtool.com'), ('X-Forwarded-For', '127.0.0.1'), ('X-Forwarded-Host', 'my.webtool.com')])

But I can see the cookie in the request from my browser:

EnvironHeaders(... ('Cookie', 'cartId=b49395c6-bdcd-11e7-b990-1d6293bbf186; _tct=84030ea6ebbc8b27e4835646fdd5df0b8552225a11d780049947b5bf95037dd0; esaSession=%7B%22authenticated%22%3A%7B%7D%7D'), ...)

I’m thinking that possibly credentials:true needs to be set somewhere, maybe? But I’d have no idea where.

Any help appreciated!

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles