数据缓存处理
This commit is contained in:
@@ -74,6 +74,11 @@ class Controller
|
||||
*/
|
||||
protected function _initialize()
|
||||
{
|
||||
//允许跨域
|
||||
header("Access-Control-Allow-Origin: *"); // 允许所有域访问
|
||||
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
|
||||
header("Access-Control-Allow-Headers: Content-Type, Authorization");
|
||||
header("Access-Control-Max-Age: 3600");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user