Thanks for asking question! It seems you have bound your root domain to the app ie contoso.com but not www.contoso.com.
Could you try to add www.domain.com to your app.
Check this official document here might be helpful.
Let us know if further query or issue remains.