When you use a development environment similar to the production, you can’t use the
app_dev.php as given.
- With vagrant your front IP could be 192.168.33.10
- With docker you can define a front IP as 220.127.116.11
app_dev.php and change the following code
Keep in mind, always use private IP and don’t include this file during deployment to your production