Commit 14765d8f3d9e63a57f424cf59aa8f9f3b9c1e722
1 parent
f12160c7
1.
Showing
3 changed files
with
6 additions
and
2 deletions
src/main/java/com/bsth/security/WebSecurityConfig.java
| @@ -74,6 +74,10 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | @@ -74,6 +74,10 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | ||
| 74 | .expiredUrl(Constants.LOGIN_PAGE + "?error=true") | 74 | .expiredUrl(Constants.LOGIN_PAGE + "?error=true") |
| 75 | .maxSessionsPreventsLogin(false) | 75 | .maxSessionsPreventsLogin(false) |
| 76 | .sessionRegistry(sessionRegistry()); | 76 | .sessionRegistry(sessionRegistry()); |
| 77 | + //edge游览器地图和轨迹播放不行的问题 | ||
| 78 | + http.headers().contentSecurityPolicy( | ||
| 79 | + "script-src 'unsafe-inline' 'unsafe-eval' http: https:; worker-src blob:;" | ||
| 80 | + ); | ||
| 77 | 81 | ||
| 78 | WhiteIpFilter whiteIpFilter = new WhiteIpFilter(); | 82 | WhiteIpFilter whiteIpFilter = new WhiteIpFilter(); |
| 79 | http.addFilterBefore(whiteIpFilter, FilterSecurityInterceptor.class); | 83 | http.addFilterBefore(whiteIpFilter, FilterSecurityInterceptor.class); |
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/dftz.html
| @@ -182,7 +182,7 @@ | @@ -182,7 +182,7 @@ | ||
| 182 | 182 | ||
| 183 | //重置类型,等待调整界面触发刷新事件 | 183 | //重置类型,等待调整界面触发刷新事件 |
| 184 | $(this).val(sch.bcType); | 184 | $(this).val(sch.bcType); |
| 185 | - $.get(url, function(htmlStr){ | 185 | + i18n4get(url, function(htmlStr){ |
| 186 | $(document.body).append(htmlStr); | 186 | $(document.body).append(htmlStr); |
| 187 | 187 | ||
| 188 | UIkit.modal(detailModal, {bgclose: true,modal:false}).show(); | 188 | UIkit.modal(detailModal, {bgclose: true,modal:false}).show(); |
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/fcxxwt.html
| @@ -329,7 +329,7 @@ | @@ -329,7 +329,7 @@ | ||
| 329 | //重置类型,等待调整界面触发刷新事件 | 329 | //重置类型,等待调整界面触发刷新事件 |
| 330 | $(this).val(sch.bcType); | 330 | $(this).val(sch.bcType); |
| 331 | 331 | ||
| 332 | - $.get(url, function(htmlStr){ | 332 | + i18n4get(url, function(htmlStr){ |
| 333 | $(document.body).append(htmlStr); | 333 | $(document.body).append(htmlStr); |
| 334 | 334 | ||
| 335 | UIkit.modal(detailModal, {bgclose: true,modal:false}).show(); | 335 | UIkit.modal(detailModal, {bgclose: true,modal:false}).show(); |