This issue is automatically created based on existing pull request: magento/pwa-studio#2986: <FEATURE] Added the xfwd option to the proxyMiddleware so HTTPXFORW…
Please fill out as much information as you can about your PR to help speed up the review process.
If your PR addresses an existing GitHub Issue, please refer to it in the title or Additional Information section to make the connection.
We may ask you for changes in your PR in order to meet the standards set in our Contribution Guidelines. PRs that do not comply with our guidelines may be closed at the maintainers' discretion.
Feel free to remove this section before creating this PR. Thank you for your contribution!
--]
Description
When you allow a Magento Route through the Venia proxy there is no possible way to determine the current store.
By enabling the xfwd option in the proxyMiddleware it is possible to allow Magento to determine the current store based on HTTPX_FORWARDEDHOST.
For example when you have a Magento Module which generates a PDF file with product data it should also have the store information to display the correct language and storeview values of the product.
This issue is automatically created based on existing pull request: magento/pwa-studio#2986: <FEATURE] Added the xfwd option to the proxyMiddleware so HTTPXFORW…
…ARDED_HOST can be used to determine the store
[!-- Before submitting this pull request, please make sure you have read our Contribution Guidelines and your PR meets our contribution standards: https://github.com/magento/pwa-studio/blob/master/.github/CONTRIBUTING.md
Please fill out as much information as you can about your PR to help speed up the review process. If your PR addresses an existing GitHub Issue, please refer to it in the title or Additional Information section to make the connection.
We may ask you for changes in your PR in order to meet the standards set in our Contribution Guidelines. PRs that do not comply with our guidelines may be closed at the maintainers' discretion.
Feel free to remove this section before creating this PR. Thank you for your contribution! --]
Description
When you allow a Magento Route through the Venia proxy there is no possible way to determine the current store. By enabling the xfwd option in the proxyMiddleware it is possible to allow Magento to determine the current store based on HTTPX_FORWARDEDHOST.
For example when you have a Magento Module which generates a PDF file with product data it should also have the store information to display the correct language and storeview values of the product.
Checklist
[!--- Go over all the following points, and make sure you've done anything necessary -->
Test Plan: (provided by contributor)