Commit 4b4d326b094aba69318c239495ed9ec934334dae
1 parent
d076480b
1.
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/com/bsth/security/WebSecurityConfig.java
| ... | ... | @@ -70,6 +70,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { |
| 70 | 70 | .expiredUrl(Constants.LOGIN_PAGE + "?error=true") |
| 71 | 71 | .maxSessionsPreventsLogin(false) |
| 72 | 72 | .sessionRegistry(sessionRegistry()); |
| 73 | + //edge游览器地图和轨迹播放不行的问题 | |
| 74 | + http.headers().contentSecurityPolicy("script-src 'unsafe-inline' 'unsafe-eval' http: https:; worker-src blob:;"); | |
| 73 | 75 | |
| 74 | 76 | WhiteIpFilter whiteIpFilter = new WhiteIpFilter(); |
| 75 | 77 | http.addFilterBefore(whiteIpFilter, FilterSecurityInterceptor.class); | ... | ... |