public class CorsFilter
extends org.springframework.web.filter.OncePerRequestFilter
implements javax.servlet.Filter
| 构造器和说明 |
|---|
CorsFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.FilterChain filterChain) |
void |
setAllowCredentials(String allowCredentials) |
void |
setAllowHeaders(String allowHeaders) |
void |
setAllowMethods(String allowMethods) |
void |
setAllowOrigin(String allowOrigin) |
void |
setExposeHeaders(String exposeHeaders) |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchaddRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContextprotected void doFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
IOException
doFilterInternal 在类中 org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionIOExceptionpublic void setAllowOrigin(String allowOrigin)
public void setAllowMethods(String allowMethods)
public void setAllowCredentials(String allowCredentials)
public void setAllowHeaders(String allowHeaders)
public void setExposeHeaders(String exposeHeaders)
Copyright © 2022. All rights reserved.