Use HTTP_HOST instead of SERVER_NAME

Created on 10 July 2024, 3 months ago
Updated 6 August 2024, about 2 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

Postponed: needs info

Version

2.0

Component

General

Created by

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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 about 2 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

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

Production build 0.71.5 2024