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.63k stars 2.08k forks source link

fix: passing x-forwarded-host in axios request #6869

Closed Fifciu closed 1 year ago

Fifciu commented 1 year ago

Description

Around a month ago, I added functionality that passes the original value of the Host header when sending a request from the Nuxt server to the middleware. This PR adds also an X-Forwarded-Host header as it's essential to use it if the infrastructure has a reverse proxy.

It's the following one with resolved conflicts: https://github.com/vuestorefront/vue-storefront/pull/6818