resp.headers["X-Frame-Options"] = "deny";
resp.headers["X-Permitted-Cross-Domain-Policies"] = "none";
resp.headers["X-XSS-Protection"] = "1; mode=block";
- resp.headers["Content-Security-Policy"] = "default-src 'self'; img-src *; style-src 'self' 'unsafe-inline'";
+ resp.headers["Content-Security-Policy"] = "default-src 'self'; style-src 'self' 'unsafe-inline'";
if(req.method == "OPTIONS") {
/* the OPTIONS method should not require auth, otherwise it breaks CORS */
resp.headers["Content-Type"] = "text/css";
else if(parts.back() == "js")
resp.headers["Content-Type"] = "application/javascript";
+ else if(parts.back() == "png")
+ resp.headers["Content-Type"] = "image/png";
resp.status=200;
}
else if(resp.url.path=="/") {
<script src="local.js"></script>
</head>
<body>
- <a href="https://github.com/PowerDNS/pdns"><img style="position: absolute; top: 0; right: 0; border: 0;"
- src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"
- alt="Fork me on GitHub"></a>
-
-
- <table width="100%" border="0"><tr><td><img src="https://www.powerdns.com/img/powerdns-logo-220px.png"/></td>
+ <table width="100%" border="0"><tr><td><img src="powerdns-logo-220px.png"/></td>
<td style="padding: 0px 90px 0px 20px">
<span id="version"></span><br/>
dnsdist comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.<br/>
$.ajax({
url: 'jsonstat?command=stats',
type: 'GET',
+ dataType: 'json',
jsonp: false,
success: function(data, x, y) {
$("#questions").text(data["queries"]);
},
});
- $.ajax({ url: 'api/v1/servers/localhost', type: 'GET', dataType: 'json',
+ $.ajax({ url: 'api/v1/servers/localhost', type: 'GET', dataType: 'json', jsonp: false,
success: function(data) {
$("#version").text(data["daemon_type"]+" "+data["version"]);
$("#acl").text(data["acl"]);
// return;
// updateRingBuffers();
- $.ajax({ url: 'jsonstat?command=dynblocklist', type: 'GET', dataType: 'json',
+ $.ajax({ url: 'jsonstat?command=dynblocklist', type: 'GET', dataType: 'json', jsonp: false,
success: function(data) {
var bouw='<table width="100%"><tr align=left><th>Dyn blocked netmask</th><th>Seconds</th><th>Blocks</th><th align=left>Reason</th></tr>';
var gotsome=false;