Http::header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
Http::header('Access-Control-Allow-Methods: GET, POST, PUT,OPTIONS');
一定要允许OPTIONS请求
Http::header('Access-Control-Allow-Methods: GET, POST, PUT,OPTIONS');
一定要允许OPTIONS请求