Use HTTP_HOST instead of SERVER_NAME

Created on 10 July 2024, 12 months ago

Problem/Motivation

100% Failure rate on pantheon hosted sites due to use of 'SERVER_NAME' variable when comparing host name for verification.
See https://docs.pantheon.io/server_name-and-server_port

Proposed resolution

Replace all usage of 'SERVER_NAME' with 'HTTP_HOST'.

🐛 Bug report
Status

Active

Version

2.0

Component

General

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bpietsch
  • 🇩🇪Germany Anybody Porta Westfalica

    Please provide best practice documentation, best would be from Google recaptcha implementation itself or SDK why HTTP_HOST is the correct one. This may have security implications.

  • Status changed to Postponed: needs info 11 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    PS: Also please check what's used in 3.x!

  • Status changed to Closed: outdated 19 days ago
  • 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

    Drupal 7 is no longer supported. If this applies to Drupal 10/11, please re-open.

Production build 0.71.5 2024