{"id":19024497,"date":"2026-09-20T09:48:33","date_gmt":"2026-09-20T09:48:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=19024497"},"modified":"2026-09-20T09:49:41","modified_gmt":"2026-09-20T09:49:41","slug":"csp-headers-how-to-edit","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/csp-headers-how-to-edit\/","title":{"rendered":"CSP headers &#8211; how to edit"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The plugin seems to offer the option to add CSP headers and I&#8217;ve added to the default, thus:-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">upgrade-insecure-requests; default-src &#8216;self&#8217;; base-uri &#8216;none&#8217;; form-action &#8216;self&#8217;; frame-ancestors &#8216;none&#8217;; require-trusted-types-for &#8216;script&#8217;;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When tested in securityheaders.com I&#8217;m getting A+ rating, nice, but I see that it only shows:-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">content-security-policy &#8211;  <strong>frame-ancestors<\/strong> &#8216;self&#8217;;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is not the one I have entered.  Have I entered and formatted the additional headers correctly?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, the default headers: upgrade-insecure-requests; is not being shown.  Are there issues here of have I misunderstood?<\/p>\n","protected":false},"template":"","class_list":["post-19024497","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19024497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19024497\/revisions"}],"predecessor-version":[{"id":19024498,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19024497\/revisions\/19024498"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19024497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}