alipay 临时增加跨域, 迁移144后删除

feature/pay
lyt 6 years ago
parent 1173cc6c92
commit d6d761bc4d

@ -78,6 +78,10 @@ class AlipayTradeService extends CI_Controller
if(empty($this->gateway_url)||trim($this->gateway_url)==""){
log_message('error','Alipay ERROR gateway_url should not be NULL!');
}
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST, GET');
header('Access-Control-Max-Age:0');
header('Access-Control-Allow-Headers:x-requested-with, Content-Type');
}
public function index()
{

Loading…
Cancel
Save