Removed inner styles and updated CSP
This commit is contained in:
parent
87a766a2e8
commit
cf9286e4c3
@ -185,9 +185,9 @@ try
|
|||||||
|
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
|
|
||||||
var csp = config["Content-Security-Policy"];
|
var csp_list = config.GetSection("Content-Security-Policy").Get<string[]>();
|
||||||
if(csp is not null)
|
if(csp_list is not null)
|
||||||
app.UseCSPMiddleware(csp);
|
app.UseCSPMiddleware($"{string.Join("; ", csp_list)};");
|
||||||
|
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
|
|
||||||
|
|||||||
@ -67,7 +67,7 @@
|
|||||||
}
|
}
|
||||||
var baseUrl = "/img/flags";
|
var baseUrl = "/img/flags";
|
||||||
var $state = $(
|
var $state = $(
|
||||||
`<span style="font-size: 0.85rem;"><img src="${baseUrl}/${state.element.value}.png" class="img-flag me-3" />${state.text}</span>`
|
`<span><img src="${baseUrl}/${state.element.value}.png" class="img-flag me-3" />${state.text}</span>`
|
||||||
);
|
);
|
||||||
return $state;
|
return $state;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -85,4 +85,4 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
}
|
}
|
||||||
<div id='app' style='background: gray; width: 100vw; height: 100vh; margin: 0 auto;'></div>
|
<div id='app'></div>
|
||||||
@ -12,7 +12,17 @@
|
|||||||
},
|
},
|
||||||
"PSPDFKitLicenseKey": null,
|
"PSPDFKitLicenseKey": null,
|
||||||
/* The first format parameter {0} will be replaced by the nonce value. */
|
/* The first format parameter {0} will be replaced by the nonce value. */
|
||||||
"Content-Security-Policy": "default-src 'self'; script-src 'self' 'nonce-{0}'; style-src 'self' 'nonce-{0}'; img-src 'self' data: https:; font-src 'self'; connect-src 'self' wss://localhost:44385 ws://localhost:61446; frame-src 'self'; media-src 'self'; object-src 'self';",
|
"Content-Security-Policy": [
|
||||||
|
"default-src 'self'",
|
||||||
|
"script-src 'self' 'nonce-{0}'",
|
||||||
|
"style-src 'self' 'nonce-{0}'",
|
||||||
|
"img-src 'self' data: https:",
|
||||||
|
"font-src 'self'",
|
||||||
|
"connect-src 'self' http://localhost:* https://localhost:* ws://localhost:* wss://localhost:*",
|
||||||
|
"frame-src 'self'",
|
||||||
|
"media-src 'self'",
|
||||||
|
"object-src 'self'"
|
||||||
|
],
|
||||||
"AdminPassword": "dd",
|
"AdminPassword": "dd",
|
||||||
"AllowedOrigins": [ "https://localhost:7202", "https://digitale.unterschrift.wisag.de/" ],
|
"AllowedOrigins": [ "https://localhost:7202", "https://digitale.unterschrift.wisag.de/" ],
|
||||||
"NLog": {
|
"NLog": {
|
||||||
|
|||||||
@ -5,6 +5,13 @@
|
|||||||
|
|
||||||
/* Toolbar Buttons */
|
/* Toolbar Buttons */
|
||||||
|
|
||||||
|
#app {
|
||||||
|
background: gray;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.button-finish {
|
.button-finish {
|
||||||
transition: background-color linear 300ms;
|
transition: background-color linear 300ms;
|
||||||
background-color: #059669; /* emerald-600 */
|
background-color: #059669; /* emerald-600 */
|
||||||
@ -198,4 +205,8 @@ footer#page-footer a:focus {
|
|||||||
|
|
||||||
.select2-search__field {
|
.select2-search__field {
|
||||||
display:none
|
display:none
|
||||||
|
}
|
||||||
|
|
||||||
|
.lang-item {
|
||||||
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user