We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0149e3 commit 78c2d01Copy full SHA for 78c2d01
src/Pages/Home/JwtDecoder/JwtDecoder.cshtml
@@ -1,4 +1,4 @@
1
-@page "~/jwt-decoder"
+@page "~/jwt-decoder"
2
@model IdentityServerHost.Pages.Home.JwtDecoder
3
4
<div class="jwt-decoder-page">
@@ -664,7 +664,8 @@
664
return null;
665
}
666
667
- if (!response.headers.get('Content-Type').startsWith('application/json')) {
+ const contentType = response.headers.get('Content-Type');
668
+ if (!contentType || !contentType.startsWith('application/json')) {
669
if (url.toLowerCase().indexOf('.well-known') !== -1 || url.toLowerCase().endsWith('.json')) {
670
showError('The provided JWKs URL does not return a valid JSON response.');
671
0 commit comments