header(‘Access-Control-Allow-Credentials:true’);
header(‘Access-Control-Allow-Origin:http://baidu.com’);
這樣http://baidu.com可以訪問你的網站獲取到數據了
header(‘Access-Control-Allow-Credentials:true’);
header(‘Access-Control-Allow-Origin:http://baidu.com’);
這樣http://baidu.com可以訪問你的網站獲取到數據了