PHP: abilitare CORS nelle risposte HTTP

In PHP possiamo abilitare CORS nelle risposte HTTP.

PHP di Gabriele Romanato

In PHP possiamo abilitare CORS nelle risposte HTTP.

Possiamo aggiungere questo header HTTP specifico nelle risposte:


header('Access-Control-Allow-Origin: *');