real34 / front-commerce-lite-upward

Experimental UPWARD based version of Front-Commerce Lite
https://github.com/magento-research/pwa-studio/tree/release/2.0/packages/upward-spec
MIT License
5 stars 1 forks source link

Propagate cookies to GraphQL remote server in dev mode (local url) #3

Open real34 opened 6 years ago

real34 commented 6 years ago

Currently: when adding a product to the Cart and then fetching the Cart content, it remains empty

Expected: the Cart contains the product that was just Added

See https://github.com/front-commerce/front-commerce-lite/blob/master/src/server/express/withGraphQLApi.js#L40 and https://github.com/magento-research/pwa-studio/blob/release/2.0/packages/upward-js/lib/resolvers/ProxyResolver.js#L42

real34 commented 6 years ago

The issue cannot be reproduced on the live instance at https://front-commerce-lite-upward.now.sh/

After analysis, the issue is in development mode. The cookie is here, but not propagated it seems… See https://github.com/nodejitsu/node-http-proxy/issues/1165 for a kind of similar analysis.