Support validation behind a reverse proxy

Created on 26 October 2020, almost 4 years ago
Updated 5 January 2024, 9 months ago

Problem/Motivation

When the webserver runs behind a reverse proxy, the validation of the captcha can fail.
This happens since the hostname is set to $_SERVER['SERVER_NAME'], which does not respect any reverse proxy configuration from Drupal.

Proposed resolution

Use the hostname received from Drupal, with respect for the reverse_proxy_host_header setting.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

reCAPTCHA V2

Created by

πŸ‡§πŸ‡ͺBelgium interx Flanders

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024