Error after adding header security code
-
Hi
I just added this code in my .htaccess file to resolveContent-Security-Policyproblem:Header set Content-Security-Policy "default-src *; script-src *; style-src *; img-src *; connect-src *; font-src *; media-src *; report-uri *; child-src *; form-action *; frame-ancestors *; object-src *; frame-src *; worker-src *; manifest-src *; base-uri *"But after I added that code, the following error appeared on my wordpress:
1. The Site kit plugin logo becomes weird (enlarges on the wordpress dashboard)
2. The WP Tab Widget plugin not working properly (loading does’t stop) on my site
3. TheError Establishing a Database Connectionnotification appears continuously, even though the settings inwp-config.phpare correct
4. ErrorEstablishing a Database Connectionnotification screen is different from usual (the writing is not neat)And after I deleted that code, the problem disappeared
How to fix it?
Thank you
The topic ‘Error after adding header security code’ is closed to new replies.