Skip to content

Commit d46e97d

Browse files
committed
Fix index.html: SBA.csrf must not be undefined
1 parent 2b8481a commit d46e97d

File tree

1 file changed

+2
-4
lines changed
  • spring-boot-admin-server-ui/src/main/frontend

1 file changed

+2
-4
lines changed

spring-boot-admin-server-ui/src/main/frontend/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,10 @@
4747
uiSettings: /*[[${uiSettings}]]*/ {},
4848
user: /*[[${user}]]*/ null,
4949
extensions: [],
50-
/*[#th:block th:if="${_csrf}"]*/
5150
csrf: {
52-
parameterName: /*[[${_csrf.parameterName}]]*/ null,
53-
headerName: /*[[${_csrf.headerName}]]*/ null
51+
parameterName: /*[[${_csrf} ? ${_csrf.parameterName} : 'null']]*/ null,
52+
headerName: /*[[${_csrf} ? ${_csrf.headerName} : 'null']]*/ null
5453
},
55-
/*[/th:block]*/
5654
use: function (ext) {
5755
this.extensions.push(ext);
5856
}

0 commit comments

Comments
 (0)