It could be that you are using both http:// and https:// urls at the site. So if you make your redirect url with https://, then http:// urls at your site cause this error, and if you make your redirect url http://, vice versa.
You should set your WP site to only use https:// or http://. https:// is better for SEO purposes.