Clickjacking protection
This commit is contained in:
parent
3dfa71daab
commit
47a62324c2
@ -1,6 +1,6 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# 4
|
||||
# 5
|
||||
|
||||
NETWORK:
|
||||
*
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* app css stylesheet */
|
||||
|
||||
html {
|
||||
display: none;
|
||||
background: #dee4e9 url(../img/bg_tile.png) 0 0 repeat;
|
||||
/*background-size: 300px 468px;*/
|
||||
}
|
||||
|
@ -23,6 +23,15 @@
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
|
||||
// Prevent click-jacking
|
||||
try {
|
||||
if (self == top) {
|
||||
document.documentElement.style.display = 'block';
|
||||
} else {
|
||||
top.location = self.location;
|
||||
}
|
||||
} catch (e) {console.error('CJ protection', e)};
|
||||
|
||||
window.safeConfirm = function (params, callback) {
|
||||
if (typeof params === 'string') {
|
||||
params = {message: params};
|
||||
|
Loading…
x
Reference in New Issue
Block a user