Cors 处理器,兼容 SpringMVC 注解 @CrossOrigin。
| Constructor and description |
|---|
CorsProcessor
() |
CorsProcessor
(String allowedOrigins, String allowedHeaders, String allowedMethods) |
| Type | Name and description |
|---|---|
void |
initDefaultConfig(String allowedOrigins, String allowedHeaders, String allowedMethods) |
static boolean |
isCorsRequest(javax.servlet.http.HttpServletRequest request) |
boolean |
processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Class controllerClazz, String actionName)处理请求 |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
处理请求
request - .response - .controllerClazz - 控制器类actionName - 控制器操作BROPEN Documentation, 2020-04-21 11:00