Finally, I found the answer and I will post it here: https://stackoverflow.com/a/42352112/8003007
All I need to do is add a context: my_context
in both firewalls.
This is a hard-to-identify option because it does not appear in the official and current Symfony documentation, but only in previous versions, such as Symfony 3.4.