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.
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
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] I have read the CONTRIBUTING document.
Changelog
[ ] I have updated the Changelog (V1) v2 and mentioned all breaking changes in the public API.
[ ] I have documented all new public APIs and made changes to existing docs mentioning the parts I've changed so they're up to date.
Tests
[x] I have written test cases for my code
[ ] I have tested my Pull Request on production build and (to my knowledge) it works without any issues
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
I tested manually my code, and it works well with both:
[ ] Default Theme
[ ] Capybara Theme
Code standards
[ ] My code follows the code style of this project.
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