I discovered the cause of my problem.
I’m using the CloudFront, AWS CDN, and one of the behaviors was not passing the headers to the application.
When changing this configuration in CloudFront, everything has returned to work.
Anyway, thanks for the help.
See you.