Empty Login Page After Adding Trusted Domain

I am new to NextCloud, I have just done a fresh install of the latest NextCloud. (I believe it’s version 27.1.3.2)

Problem: After adding my domain (eg. cloud.nextcloud.com) into ‘config.php’, and when I tried to access the login page through desktop, the page shows empty.
I went to inspect the HTML file it shows ‘body-login’ all input are set to hidden.
(But if i use mobile version app, i was still able to login using the domain).

I have also triple checked that the configuration i have entered is correctly formatted.

‘trusted_domains’ =>
array (
0 => ‘10.1.1.122’,
1 => ‘cloud.nextcloud.com’,
),
‘overwrite.cli.url’ => http://10.1.1.122,

To troubleshoot, I went to remove the newly added trusted domain and go through ip address. I was able to login.

How can i solve this issue?

Check your browser Network and Console tabs for clues (and, for that matter, your nextcloud.log located in your data directory).

Also, does cloud.nextcloud.com simply resolve to 10.1.1.122 or does it go elsewhere (such as a reverse proxy or CDN)?

I am using cloudflare tunnel as the reverse proxy.
(I replaced the domain name with xxxxxx for privacy)

The console is showing me the following error:

Refused to load the script 'https://cloud.xxxxx.com/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-lo login:1 Refused to load the script 'https://cloud.xxxxx.com/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js' because it violates the following Content Security Policy directive: "script-src 'nonce-U0kxeEd4dXdzaGpEa2ZZQUQrMi9BenZLdVJ2aFV1ditjLzd4QXIvMlNCZz06Rzk4VklsYm8xMENVcDZWa1BkM1NNbXU0OEcrUFlZbWRGc2ZGUjRxK0FHRT0=' blob:". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

And my nextcloud access log shows the following: (error log shows nothing)

10.1.1.122 - damien [14/Nov/2023:12:01:11 +0000] "GET /status.php HTTP/1.1" 200 170
10.1.1.122 - - [14/Nov/2023:12:01:11 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 181
10.1.1.122 - damien [14/Nov/2023:12:01:11 +0000] "GET /ocs/v2.php/cloud/user HTTP/1.1" 200 479
10.1.1.122 - damien [14/Nov/2023:12:01:11 +0000] "REPORT /remote.php/dav/files/damien HTTP/1.1" 207 156
10.1.1.122 - - [14/Nov/2023:12:01:11 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 181
10.1.1.122 - damien [14/Nov/2023:12:01:11 +0000] "GET /ocs/v2.php/apps/dashboard/api/v1/widgets HTTP/1.1" 200 646
10.1.1.122 - - [14/Nov/2023:12:01:11 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 181
10.1.1.122 - damien [14/Nov/2023:12:01:11 +0000] "GET /ocs/v1.php/cloud/capabilities HTTP/1.1" 200 3360
10.1.1.122 - - [14/Nov/2023:12:01:11 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 181
10.1.1.122 - damien [14/Nov/2023:12:01:11 +0000] "GET /index.php/avatar/damien/384 HTTP/1.1" 304 -
10.1.1.122 - - [14/Nov/2023:12:46:18 +0000] "GET / HTTP/1.1" 302 -
10.1.1.122 - - [14/Nov/2023:12:46:18 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 181
10.1.1.122 - - [14/Nov/2023:12:46:18 +0000] "GET /index.php/login HTTP/1.1" 200 8274
10.1.1.122 - - [14/Nov/2023:14:31:34 +0000] "GET / HTTP/1.1" 302 -
10.1.1.122 - - [14/Nov/2023:14:31:35 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 181
10.1.1.122 - - [14/Nov/2023:14:31:34 +0000] "GET /index.php/login HTTP/1.1" 200 8272
10.1.1.122 - - [14/Nov/2023:14:31:35 +0000] "GET /index.php/apps/theming/manifest?v=b6589fc6 HTTP/1.1" 200 253
10.1.1.122 - - [14/Nov/2023:14:32:35 +0000] "GET /apps/richdocumentscode/proxy.php?req=/hosting/capabilities HTTP/1.1" 200 181
10.1.1.122 - - [14/Nov/2023:14:32:34 +0000] "GET /index.php/login HTTP/1.1" 200 8276

Solution Found:

Disabling Rocket Loader fixed it.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.