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 | 74 | .expiredUrl(Constants.LOGIN_PAGE + "?error=true") |
| 75 | 75 | .maxSessionsPreventsLogin(false) |
| 76 | 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 | 82 | WhiteIpFilter whiteIpFilter = new WhiteIpFilter(); |
| 79 | 83 | http.addFilterBefore(whiteIpFilter, FilterSecurityInterceptor.class); | ... | ... |
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/dftz.html
src/main/resources/static/real_control_v2/fragments/line_schedule/context_menu/fcxxwt.html