vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.59k stars 2.08k forks source link

feat: plugins pass Host header in server to server communication #6810

Closed Fifciu closed 2 years ago

Fifciu commented 2 years ago

Description

We are able to figure out what host is (domain) from middleware integrations.

Issue

It looks like, we are losing headers other than Cookie in Nuxt server <-> Middleware server communication. In the case of, Nuxt client <-> Middleware server - everything works well. The reason could be found here: vue-storefront/_proxyUtils.ts at main · vuestorefront/vue-storefront

Motivation and Context

It's essential for our approach to multistore.

How Has This Been Tested?

Manually, during the development of EPCC multistore. In addition, there is a unit test that covers the feature.

Types of changes

Checklist:

Changelog

Tests

Code standards