While testing a Symfony web application on the production environment (--env=prod) I encountered an odd situation which basically redirected me to the authentication route (/login) after each request. Here is how it goes: you pass the security authentication login which…