I use cPanel for hosting, which has the WordPress Manager by Softaculous. I used that to create the staging site – In that manager I can view edit the site settings before even launching WordPress – that’s where it shows the staging site URL box which I edited.
I see that it has been some time since this thread was replied to. However, I had the same problem as described above – on staging site – and my solution was to change the staging URL to be the same as the original site, i.e., with https://www.domain …. in my case. I had my staging site URL without ‘www’. It appears that they have to match!
Hope this helps.