Momentaneamente ho risolto così
Codice PHP:
$rows $dbConn->affected_rows//Numero delle righe interessate

if ($rows == 0) {
        echo 
"<meta http-equiv='refresh' content='0;url=add-autore.php?insert=false/' />";
        
//header('Location:add-autore.php?insert=false');
    
} else {    
        echo 
"<meta http-equiv='refresh' content='0;url=add-autore.php?insert=true/' />";
        
//header('Location:add-autore.php?insert=true');
    
}; 
Commento la funzione header e utilizzo il meta refresh HTML.
Non mi piace per niente, ma è l'unica cosa che funziona.