Wordpress is serving all media insecurely via http. How can I fix this instead of using a plugin to force all images to be served via https?

October 21, 2018 302 views
WordPress

Wordpress is serving all media insecurely via http. How can I fix this instead of using a plugin to force all images to be served via https?

1 Answer

You can add this to your .htaccess file:

<IfModule mod_headers.c>
Header always set Content-Security-Policy “upgrade-insecure-requests;”
</IfModule>

Have another answer? Share your knowledge.