SyntaxFix
Write A Post
Hire A Developer
Questions
In one situation involving a multi-domain application, app.request.getHttpHost helped me out. It returns something like example.com or subdomain.example.com (or example.com:8000 when the port is not standard). This was in Symfony 3.4.
app.request.getHttpHost
example.com
subdomain.example.com
example.com:8000