Error after adding header security code
-
Hi
I just added this code in my .htaccess file to resolveContent-Security-Policy
problem: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 Connection
notification appears continuously, even though the settings inwp-config.php
are correct
4. ErrorEstablishing a Database Connection
notification 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.