Check for window top (#3245)

* Meta iframe deny

* Check for window top
This commit is contained in:
Jaco Greeff 2020-07-21 12:12:38 +02:00 committed by GitHub
parent 8d230961d1
commit b5afda2683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="theme-color" content="#000000">
<meta http-equiv="X-Frame-Options" content="deny">
<link rel="manifest" href="manifest.json">
<link rel="shortcut icon" href="favicon.ico">
<title><%= htmlWebpackPlugin.options.PAGE_TITLE %></title>
@ -14,5 +15,10 @@
</noscript>
<div id="root"></div>
<div id="tooltips"></div>
<script>
if (window.self !== window.top) {
window.top.location.href = window.location.href;
}
</script>
</body>
</html>