v2.0.1更新
This commit is contained in:
@@ -18,8 +18,7 @@ require_once __DIR__ . '/../config.php';
|
||||
// 设置响应头
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
// 允许跨域
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
// 仅允许同源请求
|
||||
header('Access-Control-Allow-Methods: POST, OPTIONS');
|
||||
header('Access-Control-Allow-Headers: Content-Type');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user