magento / magento2-upward-connector

Magento module for routing front-end requests to UPWARD-PHP
Open Software License 3.0
24 stars 27 forks source link

Frontend proxied requests fallback to PWA if not in allow list causing error #44

Open justinconabree opened 2 years ago

justinconabree commented 2 years ago

In Venia it's possible to define a particular path (or pattern) to resolve through a proxy. If the URL is a front-end URL and is not set in the front_names_to_skip configuration, it tries to reserve the PWA, looping, which causes an error.

All proxied requests should return the original front-name in the AreaList plugin.

This can be achieved by setting a header in the UPWARD PHP Proxy resolver and checking for the header in the AreaList plugin