📜  php 已被 CORS 策略阻止 - PHP 代码示例

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

代码示例1
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET,HEAD,OPTIONS,POST,PUT");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");