I have a https page that is loading insecure content from your theme. This should be fixed. do you have a workaround?
Insecure URL: http://mydomain.com/wp-content/uploads/avia_fonts/fontello/fontello.eot
Thanks
I tried this code:
add_filter(‘upload_dir’, function($uploads) {
$uploads[‘url’] = preg_replace(‘#^http://#i’, ‘https://’, $uploads[‘url’]);
$uploads[‘baseurl’] = preg_replace(‘#^http://#i’, ‘https://’, $uploads[‘baseurl’]);
return $uploads;
});
Now the message says:
The page at ‘https://mydomain.com’ was loaded over HTTPS, but is submitting data to an insecure location at ‘http://mydomain.com/’: this content should also be submitted over HTTPS.
I narrowed this down some more. All assets in the following path are being loaded insecurely, even on an HTTPS page. Given that I am forcing HTTPS for the page, these assets should also load over HTTPS, but as you can see all of the Iconfonts are forced to load over http.
http://mydomain.com/wp-content/uploads/avia_fonts/fontello/
Issue resolved. Can be closed.