Set $url to the correct protocol

When the WordPress admin is using a different protocol to the website, the form won't submit via ajax because $url has the incorrect protocol.

$url can be set to the correct protocol under all conditions using is_ssl.