Incorrect asset URL if reverse proxy provides forwarded URI using headers fields other than HTTP_X_FORWARDED_URI #18119
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
wontfix
If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone
Expected Behavior
Correct URL generation (for assets) when running Matomo behind a reverse proxy on a sub path.
Current Behavior
Incorrect URL generation since some reverse proxies such as traefik provide the URI using HTTP_X_FORWARDED_PREFIX rather than HTTP_X_FORWARDED_URI.
Possible Solution
Extend the URL generation to also consider HTTP_X_FORWARDED_PREFIX if set in addition to HTTP_X_FORWARDED_URI as shown here:
andremartin@e1322be
Context
Your Environment
The text was updated successfully, but these errors were encountered: