Skip to content

Commit 2d2cf57

Browse files
committed
added 'green' display to http on 127.0.0.1 in addition to localhost
1 parent 37b9acd commit 2d2cf57

File tree

1 file changed

+1
-1
lines changed
  • openid-connect-server-webapp/src/main/webapp/resources/template

1 file changed

+1
-1
lines changed

openid-connect-server-webapp/src/main/webapp/resources/template/client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
var uri = $.url(client.redirectUris[i]);
7373
if (!uri.attr('protocol')) {
7474
%><b class="text-error" title="unknown protocol scheme">?</b><%
75-
} else if (uri.attr('protocol') == 'http' && uri.attr('host') != 'localhost') {
75+
} else if (uri.attr('protocol') == 'http' && (uri.attr('host') != 'localhost' && uri.attr('host') != '127.0.0.1')) {
7676
%><b class="text-error"><%- uri.attr('protocol') %></b>://<%
7777
} else if (uri.attr('protocol') != 'https' && uri.attr('protocol') != 'http') {
7878
%><span class="text-warning"><%- uri.attr('protocol') %></span>://<%

0 commit comments

Comments
 (0)