Skip to content

Commit

Permalink
Merge pull request #1338 from roots/remove-old-wp-customizer-frame-op…
Browse files Browse the repository at this point in the history
…tions-hack

Remove old WP customizer frame options hack
  • Loading branch information
swalkinshaw authored Dec 18, 2021
2 parents ba5767d + a51674d commit c8f679e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,7 @@ server {
{% block embed_security -%}
{% if item.value.nginx_embed_security | default(nginx_embed_security | default(true)) -%}
add_header Content-Security-Policy "frame-ancestors 'self'" always;

# Conditional X-Frame-Options until https://core.trac.wordpress.org/ticket/40020 is resolved
set $x_frame_options SAMEORIGIN;
if ($arg_customize_changeset_uuid) {
set $x_frame_options "";
}
add_header X-Frame-Options $x_frame_options always;

add_header X-Frame-Options SAMEORIGIN always;
{% endif -%}
{% endblock -%}

Expand Down

0 comments on commit c8f679e

Please sign in to comment.