Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods "*"
# 如果有額外帶其它表頭資訊的話,也可以設定允許的表頭資訊
Header add Access-Control-Allow-Headers "API-Key"
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: *");
// 如果有額外帶其它表頭資訊的話,也可以設定允許的表頭資訊
header("Access-Control-Allow-Headers: API-Key");