Skip to content

Commit

Permalink
amr2mp3 允许匿名访问
Browse files Browse the repository at this point in the history
  • Loading branch information
imndx committed Mar 15, 2024
1 parent c81787a commit bbd06c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/wildfirechat/app/shiro/ShiroConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public ShiroFilterFactoryBean shiroFilter(SecurityManager securityManager) {
filterChainDefinitionMap.put("/things/add_device", "login");
filterChainDefinitionMap.put("/things/list_device", "login");

filterChainDefinitionMap.put("/amr2mp3", "login");
filterChainDefinitionMap.put("/amr2mp3", "anon");
filterChainDefinitionMap.put("/avatar/**", "anon");

//主要这行代码必须放在所有权限设置的最后,不然会导致所有 url 都被拦截 剩余的都需要认证
Expand Down

0 comments on commit bbd06c1

Please sign in to comment.