Security headers not working with WP Super Cache
-
Hi,
I am using the HTTP security headers plugin to add the following to my sites:
X-Frame-Options
X-XSS-Protection
X-Content-Type-Options
Feature-Policy
Referrer-PolicyHowever, as soon as WP Super Cache is caching webpages, it strips the security headers entirely.
I tried
// Fix security headers add_filter( 'wpsc_known_headers', 'my_wpsc_custom_headers' ); function my_wpsc_custom_headers( $headers ) { $headers[] = 'Feature-Policy'; return $headers; }
But it hasn’t worked for me.
Does someone know how to fix this issue?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Security headers not working with WP Super Cache’ is closed to new replies.