Title: Error with mod_headers.c
Last modified: September 5, 2019

---

# Error with mod_headers.c

 *  Resolved [dzembak](https://wordpress.org/support/users/dzembak/)
 * (@dzembak)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-mod_headers-c/)
 * When I added safety header to .htaccess, something went wrong (see website). 
   If I remove this code, everything is fine. Could you please fix it?
 *     ```
       # Safe Headers
       <ifModule mod_headers.c>
       Header set Strict-Transport-Security "max-age=31536000; includeSubDomains;‬"
       Header set X-XSS-Protection "1; mode=block"
       Header set X-Frame-Options "SAMEORIGIN"
       Header set X-Content-Type-Options "nosniff"
       Header set Content-Security-Policy " style-src 'self';"
       Header set Referrer-Policy "origin-when-cross-origin;"
       Header set Feature-Policy "speaker 'none';@
       </ifModule>
       ```
   
    -  This topic was modified 6 years, 7 months ago by [dzembak](https://wordpress.org/support/users/dzembak/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-with-mod_headers-c%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [dzembak](https://wordpress.org/support/users/dzembak/)
 * (@dzembak)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-mod_headers-c/#post-11912533)
 * Hello! This line affects error:
    `Header set Content-Security-Policy " style-
   src 'self';"`
 *  Plugin Author [Vova](https://wordpress.org/support/users/gn_themes/)
 * (@gn_themes)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-mod_headers-c/#post-11930180)
 * Hi [@dzembak](https://wordpress.org/support/users/dzembak/),
 * unfortunately, I’m unable to help with server configuration as this is beyond
   my scope.
 * Please contact your server administrator.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error with mod_headers.c’ is closed to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [WP Shortcodes Plugin — Shortcodes Ultimate](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Vova](https://wordpress.org/support/users/gn_themes/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/error-with-mod_headers-c/#post-11930180)
 * Status: resolved