Skip to content

Commit c8f679e

Browse files
authored
Merge pull request #1338 from roots/remove-old-wp-customizer-frame-options-hack
Remove old WP customizer frame options hack
2 parents ba5767d + a51674d commit c8f679e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

roles/wordpress-setup/templates/wordpress-site.conf.j2

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,7 @@ server {
206206
{% block embed_security -%}
207207
{% if item.value.nginx_embed_security | default(nginx_embed_security | default(true)) -%}
208208
add_header Content-Security-Policy "frame-ancestors 'self'" always;
209-
210-
# Conditional X-Frame-Options until https://core.trac.wordpress.org/ticket/40020 is resolved
211-
set $x_frame_options SAMEORIGIN;
212-
if ($arg_customize_changeset_uuid) {
213-
set $x_frame_options "";
214-
}
215-
add_header X-Frame-Options $x_frame_options always;
216-
209+
add_header X-Frame-Options SAMEORIGIN always;
217210
{% endif -%}
218211
{% endblock -%}
219212

0 commit comments

Comments
 (0)