Contact activities are being recorded on the azure green site and also on the staging site, but on the production site (which has azure front door enabled) activities are not recorded. I've added useForwardedHeaders to the startup (in many variations)
var forwardingOptions = new ForwardedHeadersOptions()
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost
};
forwardingOptions.KnownNetworks.Clear(); // Loopback by default, this should be temporary
forwardingOptions.KnownProxies.Clear(); // Update to include
app.UseForwardedHeaders(forwardingOptions);
I've confirmed that the front end site is calling the logger and log
and also that the CurrentContact cookie is stored and correct and that the ContactGUID of that cookie matches the contact it should record an activity for.
Also, online marketing and activity tracking is turned on in the CMS and
@Html.Kentico().ActivityLoggingScript() is included in the template view.
Has anyone experienced something similar issues when using Azure with front door (or other load balancers)?
Thanks!