I get endless redirects when I for instance paste a direct link to an image on a bulletin board inside an IMG-tag.
Using NextCloud 9.0.53, Apache 2.4.23 and FreeBSD. And I actually also have a reverse proxy (nginx) in front of the Apache web server. I’m also using SSL.
- Reinstalling multiple times (did not help).
- Removing .htaccess file (did not help).
- Fiddling with config/config.php.
- Lots of googling.
Though somehow I think that the problem has to do with cookies. Because I also tried CURL’ing without Cookie-headers and it worked fine. Then when I tried with a Cookie-header, I get endless redirects.
Workaround seems to be a “return”-statement as the first line of the ‘performSameSiteCookieProtection’-function in lib/base.php.
Then it works fine.
But that’s not really a solution to the problem and maybe I need that cookie protection?
Anyone know what’s going on?
Downloading via such a shared link is fine, by the way. But put it in an image tag and it gets this redirect loop (Chrome then errors out and image is not displayed).
Any help’s appreciated!