Aller au contenu principal

Drupal : net::ERR_HTTP2_PROTOCOL_ERROR

L'erreur net::ERR_HTTP2_PROTOCOL_ERROR indique un problème avec le protocole réseau HTTP/2. 

Les causes sont multiples et les méthodes pour régler le problème le sont aussi. 

Nous avons rencontrer ce problème sur un site hébergée chez OVH, cela empêcher l’exécution des fichiers js. 

Pour régler ce problème il faut modifier le fichier .htaccess et y ajouter la ligne suivante : Header always unset Content-Length

# Various header fixes.
<IfModule mod_headers.c>
  # Disable content sniffing for all responses, since it's an attack vector.
  # This header is also set in FinishResponseSubscriber, which depending on
  # Apache configuration might get placed in the 'onsuccess' table. To prevent
  # header duplication, unset that one prior to setting in the 'always' table.
  # See "To circumvent this limitation..." in
  # https://httpd.apache.org/docs/current/mod/mod_headers.html.
  Header onsuccess unset X-Content-Type-Options
  Header always set X-Content-Type-Options nosniff
  #
  # custom code :
  Header always unset Content-Length
  #
  # Disable Proxy header, since it's an attack vector.
  RequestHeader unset Proxy
</IfModule>
Stephane K
Il y'a 2 months
Modifié
Il y'a 2 months
Loading ...