Bug 16210: Set X-Frame-Options to SAMEORIGIN in 2 other places
The login page should not be displayed if the page is displayed in a
frame.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
(cherry picked from commit 6efa491d1b)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
57fc49475d
commit
7729ace7fa
16
C4/Auth.pm
16
C4/Auth.pm
|
|
@ -193,9 +193,11 @@ sub get_template_and_user {
|
|||
|
||||
$template->param( loginprompt => 1 );
|
||||
print $in->{query}->header(
|
||||
-type => 'text/html',
|
||||
-charset => 'utf-8',
|
||||
-cookie => $cookie,
|
||||
{ type => 'text/html',
|
||||
charset => 'utf-8',
|
||||
cookie => $cookie,
|
||||
'X-Frame-Options' => 'SAMEORIGIN'
|
||||
}
|
||||
),
|
||||
$template->output;
|
||||
safe_exit;
|
||||
|
|
@ -1296,9 +1298,11 @@ sub checkauth {
|
|||
# $cookie = $query->cookie(CGISESSID => $session->id
|
||||
# );
|
||||
print $query->header(
|
||||
-type => 'text/html',
|
||||
-charset => 'utf-8',
|
||||
-cookie => $cookie
|
||||
{ type => 'text/html',
|
||||
charset => 'utf-8',
|
||||
cookie => $cookie,
|
||||
'X-Frame-Options' => 'SAMEORIGIN'
|
||||
}
|
||||
),
|
||||
$template->output;
|
||||
safe_exit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue