Skip to content

Umbraco.Forms 13.1.2 records are missing an IP address when the site is behind Cloudflare CDN #1245

@stephen-sherman

Description

@stephen-sherman

Bug summary

Umbraco.Forms 13.1.2 records are missing an IP address when the site is behind Cloudflare CDN.

Specifics

Observed in multiple solutions running Umbraco.Forms 13.1.2 behind Cloudflare CDN.

  • The EnableRecordingOfIpWithFormSubmission configuration is enabled (by default, documentation).
  • The recommended header forwarding middleware is being used.
  • The X-Forwarded-For header is being populated with the user's IP address.

This seems similar to Issue #1000, though I can't find any documentation about how to use the fix outlined therein.

Steps to reproduce

  • Create a solution running Umbraco Forms 13.1.2.
  • Deploy the site behind Cloudflare CDN.
  • Create a form.
  • Submit a form record.
  • Look at the IP column of the record in the UFRecords database table.

Expected result

The user's IP address is stored in the IP column of the record in the UFRecords database table.

Actual result

The IP column of the record in the UFRecords database table is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions