buen día me aparece este error en consola cuando intento conectarme a mi php desde mi hosting, aparece un error de cors, he intentado solucionarlo pero sigue apareciendo el error. No se que me falta para poder habilitar los "cors"
error:
from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
user.php
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: access");
header("Access-Control-Allow-Methods: GET");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
?>
localhost
por el nombre del dominio.