Skip to content

Commit

Permalink
Test that the REST API is applied too
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jan 12, 2024
1 parent 1251d49 commit 9c19931
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/alley/wp/alleyvate/features/test-prevent-framing.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function test_x_frame_options_header(): void {
$this->feature->boot();

$this->get( '/' )->assertHeader( 'X-Frame-Options', 'SAMEORIGIN' );
$this->get( '/wp-json/wp/v2/posts' )->assertHeader( 'X-Frame-Options', 'SAMEORIGIN' );
}

/**
Expand Down

0 comments on commit 9c19931

Please sign in to comment.