Переглянути джерело

Merge remote-tracking branch 'origin/master'

mashengyi 3 роки тому
батько
коміт
fa15cecb23

+ 1 - 2
src/main/java/com/jkcredit/invoice/credit/SimpleCORSFilter.java

@@ -88,7 +88,6 @@ public class SimpleCORSFilter implements Filter {
             "/favicon.ico",
             "/swagger-ui.html",
             "/webjars/**",
-            "/jkcredit/main",
             "/webjars/springfox-swagger-ui/springfox.css",
             "/webjars/springfox-swagger-ui/springfox.js",
             "/webjars/springfox-swagger-ui/swagger-ui-bundle.js",
@@ -213,7 +212,7 @@ public class SimpleCORSFilter implements Filter {
          */
 
         boolean flag = (!Arrays.asList(NO_TOKEN_API_PATHS).contains(httpRequest.getRequestURI()));
-        if(httpRequest.getRequestURI().contains("/user/") || "/".equals(httpRequest.getRequestURI()) || httpRequest.getRequestURI().contains("/static/")){
+        if(httpRequest.getRequestURI().contains("/user/") || "/".equals(httpRequest.getRequestURI()) || httpRequest.getRequestURI().contains("/static/") || httpRequest.getRequestURI().contains("/jkcredit/")){
             flag = false;
         }
         if (flag) {