WordPress website owners started to see a new alert with recommended actions in the WordPress site’s health regarding security.
The alert says, “Your .htaccess file does not contain all the recommended security headers.”
How to add the new security headers to the .htaccess file?
We’ve put together a single code to be added to your .htaccess file that will fix all your security headers issues, and then this alert will disappear accordingly.
Copy and paste the below code at the end of your .htaccess.
<ifModule mod_headers.c> Header always set Content-Security-Policy...