Please go to Settings > General and make sure that both the Site URL and WordPress address URL is the same with the WP dashboard url.
If you cannot change the urls, you will have to edit your wp-config.php and add this lines:
by which you need to replace
example.com with your own respective site urls.
Hope this helps. Please let us know how it goes.