fatihemre adlı üyeden alıntı: mesajı görüntüle
Benim çalışan örneğim şu şekilde:

$response->header("Access-Control-Allow-Origin", "http://localhost:8000");
$response->header("Access-Control-Allow-Headers", "Cache-Control, Pragma, Origin, Authorization, Content-Type, X-Requested-With");
$response->header("Access-Control-Allow-Methods", "GET, PUT, POST, OPTIONS, DELETE");
hocam yazdığım api başka yerlerede istek atıyor normal ana apiye istek geldiği gibi cros dönüyor