I solved it not just refreshing the caches invalidated but flushing all the caches possibles via admin panel through these 3 sections in the image below.
Do it mainly if you are using compiled configurations.
Make sure that you are using the right cookie domain configured.
