For the WordPress mixed content error: “This request has been blocked; the content must be served over HTTPS” the best solution is to search&replace all links in files and the database using Regex with WP CLI.
But if you are looking for a quick fix, just add the following code to .htaccess file to automatically forward links to all external resources from http:// links to https://
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,QSA,NE]
Header set Content-Security-Policy "upgrade-insecure-requests;"

Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂