📜  cors 不工作 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:28.658000             🧑  作者: Mango

代码示例1
header("Access-Control-Allow-Origin: *");
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
header('Access-Control-Allow-Headers: *');
header('Access-Control-Max-Age: 1728000');
header("Content-Length: 0");
header("Content-Type: text/plain");