|
@@ -22,6 +22,8 @@ import com.jfinal.kit.StrKit;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * @author Michael Yang 杨福海 (fuhai999@gmail.com)
|
|
|
|
|
+ *
|
|
|
* use:
|
|
* use:
|
|
|
* 1、在 JFInalConfig 的 在 configInterceptor(Interceptors me) 中添加全局拦截器:me.add(new CORSIntercetpro());
|
|
* 1、在 JFInalConfig 的 在 configInterceptor(Interceptors me) 中添加全局拦截器:me.add(new CORSIntercetpro());
|
|
|
* 2、在需要支持跨域的 Action 方法中添加 @EnableCORS
|
|
* 2、在需要支持跨域的 Action 方法中添加 @EnableCORS
|