Index: core-module/pom.xml
===================================================================
diff -u -r3e81969599fba23fc2a8d02a696e0a6962e34df0 -rcda948dac69b47bc140da3151ee29d61adbf06af
--- core-module/pom.xml (.../pom.xml) (revision 3e81969599fba23fc2a8d02a696e0a6962e34df0)
+++ core-module/pom.xml (.../pom.xml) (revision cda948dac69b47bc140da3151ee29d61adbf06af)
@@ -7,7 +7,7 @@
313devgrp
jstree-project
- 19.06.04
+ 19.06.05
../pom.xml
@@ -31,7 +31,7 @@
313devgrp
lib-module
- 19.06.04
+ 19.06.05
pom
Index: core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityController.java
===================================================================
diff -u -r3e81969599fba23fc2a8d02a696e0a6962e34df0 -rcda948dac69b47bc140da3151ee29d61adbf06af
--- core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityController.java (.../SecurityController.java) (revision 3e81969599fba23fc2a8d02a696e0a6962e34df0)
+++ core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/SecurityController.java (.../SecurityController.java) (revision cda948dac69b47bc140da3151ee29d61adbf06af)
@@ -3,7 +3,13 @@
import egovframework.com.ext.jstree.support.mvc.GenericAbstractController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.servlet.ModelAndView;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+
@Controller
@RequestMapping(value = {"/api/jsTreeServiceFramework/security"})
public class SecurityController extends GenericAbstractController {
@@ -12,4 +18,18 @@
public String jsTreeCSRFtoJson() {
return "egovframework/com/ext/jstree/csrf";
}
+
+ @RequestMapping("/getCSRF.do")
+ public ModelAndView jsTreeGetCSRFtoJson(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException {
+
+ String token = request.getParameter("X-CSRF-TOKEN");
+ if (token == null || "".equals(token)) {
+ token = request.getHeader("X-CSRF-TOKEN");
+ }
+
+ ModelAndView modelAndView = new ModelAndView("jsonView");
+ modelAndView.addObject("result", token);
+ return modelAndView;
+ }
+
}
Index: lib-module/pom.xml
===================================================================
diff -u -r3e81969599fba23fc2a8d02a696e0a6962e34df0 -rcda948dac69b47bc140da3151ee29d61adbf06af
--- lib-module/pom.xml (.../pom.xml) (revision 3e81969599fba23fc2a8d02a696e0a6962e34df0)
+++ lib-module/pom.xml (.../pom.xml) (revision cda948dac69b47bc140da3151ee29d61adbf06af)
@@ -5,7 +5,7 @@
313devgrp
jstree-project
- 19.06.04
+ 19.06.05
../pom.xml
Index: pom.xml
===================================================================
diff -u -r3e81969599fba23fc2a8d02a696e0a6962e34df0 -rcda948dac69b47bc140da3151ee29d61adbf06af
--- pom.xml (.../pom.xml) (revision 3e81969599fba23fc2a8d02a696e0a6962e34df0)
+++ pom.xml (.../pom.xml) (revision cda948dac69b47bc140da3151ee29d61adbf06af)
@@ -10,7 +10,7 @@
4.0.0
313devgrp
jstree-project
- 19.06.04
+ 19.06.05
pom
jstree-project