摘要:
file_get_contents在连接不上的时候会提示Connection refused,有时候会带来不便;另外,curl的性能比file_get_contents高,所以用curl重写file_get_contentsfunction _file_get_contents($s) { $... 阅读全文
摘要:
在 conf文件server块里面加上:add_header 'Access-Control-Allow-Origin' "$http_origin";add_header 'Access-Control-Allow-Credentials' 'true';add_header 'Access-Co... 阅读全文