Direkt zum Inhalt
Drupal : net::ERR_HTTP2_PROTOCOL_ERROR

Der Fehler net::ERR_HTTP2_PROTOCOL_ERROR weist auf ein Problem mit dem Netzwerkprotokoll HTTP/2 hin. 

Die Ursachen sind vielfältig, ebenso wie die Methoden zur Behebung des Problems. 

Wir sind auf dieses Problem auf einer bei OVH gehosteten Website gestoßen, wodurch die Ausführung von JS-Dateien verhindert wurde. 

Um dieses Problem zu beheben, muss die Datei .htaccess geändert und die folgende Zeile hinzugefügt werden : 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>
Profile picture for user admin Stephane K

Écrit le

Il y'a 1 Jahr
Modifié
Il y'a 2 Wochen
Lädt...
WhatsApp
Support Habeuk : +237 694 900 622
WhatsApp Send