Commit b8207bed authored by 赵啸非's avatar 赵啸非

提交配置校验

parent 6cd679c6
......@@ -15,21 +15,14 @@ import java.io.IOException;
import java.util.List;
@Slf4j
@Component
//@Component
@Profile({"yanyuan", "test"})
public class SameSiteCookieFilter implements Filter {
/**
* cookie的密钥
*/
@Value("${trustedReferer:''}")
private String trustedReferer;
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
HttpServletResponse httpResponse = (HttpServletResponse) response;
HttpServletRequest httpRequest = (HttpServletRequest) request;
Cookie[] cookies = ((HttpServletRequest) request).getCookies();
if (cookies != null) {
for (Cookie cookie : cookies) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment