#from rt/bin/webmux.pl(.in)
if ( !$protect_fds && $ENV{'MOD_PERL'} && exists $ENV{'MOD_PERL_API_VERSION'}
&& $ENV{'MOD_PERL_API_VERSION'} >= 2
) {
#from rt/bin/webmux.pl(.in)
if ( !$protect_fds && $ENV{'MOD_PERL'} && exists $ENV{'MOD_PERL_API_VERSION'}
&& $ENV{'MOD_PERL_API_VERSION'} >= 2
) {
# under mod_perl2, STDIN and STDOUT get closed and re-opened,
# however they are not on FD 0 and 1. In this case, the next
# socket that gets opened will occupy one of these FDs, and make
# under mod_perl2, STDIN and STDOUT get closed and re-opened,
# however they are not on FD 0 and 1. In this case, the next
# socket that gets opened will occupy one of these FDs, and make
+ if ( $HTML::Mason::Commands::r ) {
+ FS::Trace->log(' adding headers');
+ #frame-ancestors not supported by all the major browsers yet
+ $HTML::Mason::Commands::r->header_out( 'X-Frame-Options', 'SAMEORIGIN' );
+ }
+