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:(in-1921): added x-forwarded-host to condition #6861

Closed jeffpdotone closed 1 year ago

jeffpdotone commented 1 year ago

Fix to add in the condition and see if there's an available x-forwarded-host headers

Description

The changes will take in condition and see whether the x-forwarded-host is available or not fallback to another host property that can determine the domain/host it's coming from.

Related Issue

Integrations we're not able to work correctly because of the missing host which is required by some of the APIs.

Motivation and Context

This will prevent the integrations from not working because of the missing host.

How Has This Been Tested?

Added unit tests

Types of changes

Checklist:

Changelog

Tests

Code standards

Docs

Fifciu commented 1 year ago

Already done here: https://github.com/vuestorefront/vue-storefront/pull/6818

jeffpdotone commented 1 year ago

Already done here: #6818

Duplicates #6818