It may happen due to improper url configuration while migrating from http to https. Here is how you can fix this issue.
1. Update WordPress Address (URL) and Site Address URL:
2. Add the following piece of code in wp-config.php file :
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
This should fix the issue.