CORS.php 263 字节 原文件 审查 历史 永久链接 1 2 3 4 5 6 7 8 9 10 11 12 <?php namespace app\h5\behavior; class CORS { public function appInit(){ header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:*'); header('Access-Control-Allow-Headers:x-requested-with,content-type'); } }