diff --git a/config/packages/http_client.yaml b/config/packages/http_client.yaml index 66ac52b..1476bf6 100644 --- a/config/packages/http_client.yaml +++ b/config/packages/http_client.yaml @@ -1,9 +1,13 @@ # Active le composant HTTP Client (symfony/http-client) et enregistre # l'autowiring de HttpClientInterface. Utilise par les commandes de # synchronisation de referentiels externes (QUALIMAT, IDTF...). +# +# User-Agent navigateur neutre : les sources (qualimat.org sous WordPress/WAF, +# icrt-idtf.com) filtrent souvent les UA de bibliotheque/vides ; un UA de type +# navigateur evite les blocages anti-bot sans reveler l'application. framework: http_client: default_options: timeout: 30 headers: - User-Agent: 'Starseed-ERP (referentiel-sync)' + User-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'