• Hi
    I just added this code in my .htaccess file to resolve Content-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. The Error Establishing a Database Connection notification appears continuously, even though the settings in wp-config.php are correct
    4. Error Establishing 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

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error after adding header security code’ is closed to new replies.