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.