Fixes #5625
Added option to pass URL_HOST as an optional env variable which fixes the host-header issue. Below is a screenshot of the test with cmd curl http://localhost:3000/ -H "X-Forwarded-Host: evil.com" | grep property as the image shows the og:image no longer shows as content from evil.com as I had the URL_HOST var set to http://localhost:3000
Fixes #5625 Added option to pass URL_HOST as an optional env variable which fixes the host-header issue. Below is a screenshot of the test with cmd
curl http://localhost:3000/ -H "X-Forwarded-Host: evil.com" | grep property
as the image shows the og:image no longer shows as content from evil.com as I had the URL_HOST var set to http://localhost:3000