添加跨域

This commit is contained in:
2025-12-23 11:05:06 +08:00
parent 2f79f7fbcd
commit 49969d813a
4 changed files with 603 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ use think\Response;
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Authorization, version");
header("Access-Control-Allow-Headers: Content-Type, Authorization");
class ApiBase extends Controller
{