diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-01-15 15:46:33 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-01-15 15:46:33 -0800 |
commit | 51832db3ca7575ef21685ccc4f15c9d8af52756c (patch) | |
tree | 21fe5585e8ba66a9b0cc93770bdc5049dec393e0 /FS/FS/Mason | |
parent | 334eb034f27b147e998cb6b481265091d817ea0e (diff) |
fix self-service fallout from clickjacking fix, RT#39881
Diffstat (limited to 'FS/FS/Mason')
-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 b33efcc..0d9c6d4 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/) ) { |