$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'Referrer-Policy', 3.2 )
->header_isnt( 'Referrer-Policy', 3 )
;
done_testing();
$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'X-Xss-Protection', 3.2 )
->header_isnt( 'X-Xss-Protection', 3 )
;
done_testing();
text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'X-Content-Type-Options', 3.2 )
->header_isnt( 'X-Content-Type-Options', 3 )
;
done_testing();
t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)->header_isnt( 'Strict-Transport-Security', 3.2 );
$t->get_ok('/')->status_is(200)->header_isnt( 'Strict-Transport-Security', 3 );
done_testing();
$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'X-Frame-Options', 3.2 )
->header_isnt( 'X-Frame-Options', 3 )
;
done_testing();
'/' => sub {
my $c = shift;
$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'Access-Control-Max-Age', 'hallo' )
;
done_testing();
/' => sub {
my $c = shift;
$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'Content-Security-Policy', 'hallo' )
;
done_testing();
sub {
my $c = shift;
$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'Access-Control-Allow-Methods', 'hallo' )
;
done_testing();
{
my $c = shift;
$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'Access-Control-Allow-Credentials', 'hallo' )
;
done_testing();
> sub {
my $c = shift;
$c->render(text => 'Hello Mojo!');
};
my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)
->header_isnt( 'Access-Control-Allow-Origin', 'hallo' )
;
done_testing();