| | |
| | | package com.terra.gateway.filter; |
| | | |
| | | import java.nio.charset.StandardCharsets; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import javax.annotation.Resource; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.cloud.gateway.filter.GatewayFilterChain; |
| | | import org.springframework.cloud.gateway.filter.GlobalFilter; |
| | |
| | | public class XssFilter implements GlobalFilter, Ordered |
| | | { |
| | | // 跨站脚本的 xss 配置,nacos自行添加 |
| | | @Autowired |
| | | @Resource |
| | | private XssProperties xss; |
| | | |
| | | @Override |