I am using Cloudfront CDN to speed up my nextcloud install as it is in a shared host. When I try to access from my CDN url (something like asdfasdghasda.cloudfront.net) I go back to the login screen even when I know that I am entering the correct username and password. The login from the original domain (mydomain.com/nextcloud) works fine, and I’ve tried with Azure CDN and it works too.
Any clues?