# Login only redirects after page refresh in Chrome/Edge

**URL:** <https://help.nextcloud.com/t/login-only-redirects-after-page-refresh-in-chrome-edge/106771>\
**Category:** ℹ️ Support\
**Tags:** nc20\
**Created:** [February 4, 2021, 11:26am UTC](https://help.nextcloud.com/t/login-only-redirects-after-page-refresh-in-chrome-edge/106771 "2021-02-04T11:26:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ITHurts](https://help.nextcloud.com/letter_avatar/ithurts/32/6_22734026db12803ebb3e059622ac3534.png) [@ITHurts](https://help.nextcloud.com/u/ITHurts)\
**Post date:** [February 4, 2021, 11:26am UTC](https://help.nextcloud.com/t/login-only-redirects-after-page-refresh-in-chrome-edge/106771/1 "2021-02-04T11:26:12Z")

</div>

Nextcloud version: `20.0.6.1`  
Operating system and version: `Ubuntu 18.04.4 LTS`  
Apache or nginx version: `Apache 2.4.41`  
PHP version: `not present (the command "php -v" did nothing, php probably not necessary because of snap)`

The issue you are facing:

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

1. Attempt to login with any user account using the latest version of Chrome or Edge.
2. The ‘cirlce’ will continue to spin and the user isn’t logged in.
3. Hitting refresh in the browser allows the user to login.

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto

<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' =>
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'instanceid' => 'instanceid',
  'passwordsalt' => 'passwordsalt',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => 'hostIP',
    1 => 'sub.domain.eu',
  ),
  'trusted_proxies' =>
  array (
    0 => 'reverseproxyIP',
  ),
  'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.6.1',
  'overwrite.cli.url' => 'https://sub.domain.eu/',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'sub.domain.eu',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'auth.bruteforce.protection.enabled' => false,
  'dbpassword' => 'dbpw',
  'installed' => true,
  'loglevel' => 2,
  'maintenance' => false,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'no-reply',
  'mail_domain' => 'domain.eu',
  'mail_smtphost' => 'mailhostIP',
  'mail_smtpport' => '25',
);

```

I have used snap to install Nextcloud.  
A reverse proxy is present which also runs Ubuntu and Apache.

The things i tried so far are:

1. 

Changing

```auto
`'overwrite.cli.url' => 'https://domain.lu', {...}`

```

to

```auto
`{...}
 'overwrite.cli.url' => 'https://domain.lu',
 'overwritehost' => 'domain.lu',
 'overwriteprotocol' => 'https',
 {...}`

```

As it was recommended from this post: [Nextcloud Login Issue Google Chrome](https://help.nextcloud.com/t/nextcloud-login-issue-google-chrome/65958)

1. 

Adding a trusted proxy with the line

```auto
'trusted_proxies' => 
array (
  0 => 'nginxiphere'
),

```

As recommended in this post: [Weird web login issue also preventing app sync](https://help.nextcloud.com/t/weird-web-login-issue-also-preventing-app-sync/64417)

1. 

Removing the line

```auto
'overwritecondaddr',

```

As recommended in this post: [Login and grant access hangs on fresh NC18 Docker install · Issue #19091 · nextcloud/server · GitHub](https://github.com/nextcloud/server/issues/19091)

Nothing has worked so far.  
I did multiple restarts and also always cleared the cache of my browsers after each change.

Is this some issue with installing Nextcloud from snap?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 6:38am UTC](https://help.nextcloud.com/t/login-only-redirects-after-page-refresh-in-chrome-edge/106771/2 "2024-12-13T06:38:47Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 6:38am UTC](https://help.nextcloud.com/t/login-only-redirects-after-page-refresh-in-chrome-edge/106771/3 "2024-12-13T06:38:48Z")

</div>


