服務端做手腳,操作起來也很簡單,就是服務端在接口response的時候加上如下的header: 就可以解決跨域問題了。
header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Methods:POST,GET");
服務端做手腳,操作起來也很簡單,就是服務端在接口response的時候加上如下的header: 就可以解決跨域問題了。
header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Methods:POST,GET");
$fileContent = trim($fileContent); $fileContent=$queueList->characet($fileContent);