Cant' connect (error 401) from remote apps

Hi! My nextcloud is working correctly via web, but when I try to connect via the Windows App or the Android App, I authenticate myself correctly, and then I get a 401 error (android) or “Forbidden” (Windows). How can I fix this?