Skip to content

Commit

Permalink
fix: security problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Mar 30, 2023
1 parent 8592f78 commit 6c48075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server:
port: 3000

filter:
white-list: /server,/projects/list,/websockets,/users/login,/users/register,/users/loginConfig,/swagger,/v3/api-docs,/doc.html,/folder/upload,/keepFiles/,/imageFiles/,/recordFiles/,/logFiles/,/packageFiles/
white-list: /projects/list,/websockets,/users/login,/users/register,/users/loginConfig,/swagger,/v3/api-docs,/doc.html,/folder/upload,/keepFiles/,/imageFiles/,/recordFiles/,/logFiles/,/packageFiles/

knife4j:
gateway:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class AuthFilter implements GlobalFilter, Ordered {
@Override
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
for (String white : whiteList) {
if (exchange.getRequest().getURI().toString().contains(white)) {
if (exchange.getRequest().getURI().getPath().contains(white)) {
return chain.filter(exchange);
}
}
Expand Down

0 comments on commit 6c48075

Please sign in to comment.