Matt Andrews

Results 31 comments of Matt Andrews
trafficstars

I mean I guess it is true that the status codes between 200 and 400 would be ‘good’ … but if you are in control of your backend you would...

I think webpack should work, that's how we use(d) at the FT.

[didn't mean to close this, sorry!]

Are you sure? This is a very common use case. I believe `credentials` really should work…

Oh right, on the server, I see…… I think you'd need to add the cookie header manually in that environment. Something like this… ```js fetch(url, { headers: { Cookie: 'name=value'...

on the server, isomorphic-fetch just proxies node-fetch underneath, which as you say does not implement `credentials`:- https://github.com/bitinn/node-fetch#class-request

oh that's quite annoying, yes, hum.

You would have to implement this yourself, something like…… ```js fetch('https://mattandre.ws/endpoint-that-sets-set-cookie') .then(res => { const setCookie = res.headers.get('set-cookie'); const cookie = setCookie.substr(0, setCookie.indexOf(';')) return fetch('https://mattandre.ws/endpoint-that-relies-on-cookies-set', { headers: { Cookie: cookie...

Hmm, I think that it might be a little dangerous to do by default. If you're using Cookies on the server side you are probably emulating logging in as a...

Thank you for this and sorry for the incredible delay to reply … I'd like to incorporate your tests in the codebase … would you like to do that or...