diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-01-15 15:46:32 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-01-15 15:46:32 -0800 |
commit | dfa43146bb9c472322b82c18a912f44401a76694 (patch) | |
tree | 242c884ea8b4e14ffddac44b19fc8bfa101953e4 | |
parent | e74ab331f1d713d9baf4daa12834fe7d9028520d (diff) |
fix self-service fallout from clickjacking fix, RT#39881
-rw-r--r-- | FS/FS/Mason/Request.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/FS/FS/Mason/Request.pm b/FS/FS/Mason/Request.pm index b33efcc17..0d9c6d448 100644 --- a/FS/FS/Mason/Request.pm +++ b/FS/FS/Mason/Request.pm @@ -65,9 +65,11 @@ sub freeside_setup { if fileno(STDOUT) != 1; } - 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' ); + 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' ); + } if ( $filename =~ qr(/REST/\d+\.\d+/NoAuth/) ) { |