D9+: Validate "HTTP Host header" field value is a valid hostname

Created on 14 June 2023, over 1 year ago
Updated 5 March 2024, 9 months ago

Problem/Motivation

Follow up to πŸ“Œ D7: Don't prefill Hostname field with www.example.com Fixed . Users can have invalid values in the HTTP Host header field so it would be good to check this.

Steps to reproduce

See πŸ“Œ D7: Don't prefill Hostname field with www.example.com Fixed for an example use case.

Proposed resolution

Add some validation to check the HTTP Host header value and show an error if it's not a good hostname.

Remaining tasks

  1. Update code
  2. Review and test
  3. Commit :)

User interface changes

If an invalid hostname is entered and the form is submitted, an error message will show up at the top of the form.

API changes

Data model changes

πŸ“Œ Task
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024