添加跨域

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

@@ -6,6 +6,11 @@ namespace app\api\controller;
use app\api\logic\AdLogic;
use think\Db;
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Authorization");
class Ad extends ApiBase
{
public $like_not_need_login = ['lists','channel','label','add_comost','add_comost','list_comost','follow_comost','comost_add','label_edit','comost_info','notice','position','position_list','vode_type','video_list','video_info','user_wages','user_wages_add','user_leave','fine','recruit','last_leave','last_fine','notice_list','leave','auth'];