gaepdit / complaint-tracking

Complaint Tracking System
The Unlicense
1 stars 3 forks source link

InvalidOperationException: Cannot determine the https port from IServerAddressesFeature, multiple values were found. Set the desired port explicitly on HttpsRedirectionOptions.HttpsPort. [HTTP 200 returned while handling GET Request] #755

Closed dougwaldron closed 6 months ago

dougwaldron commented 6 months ago

Raygun report https://app.raygun.com/crashreporting/258s6a2/errors/205583351524 has more details about the error

dougwaldron commented 6 months ago

Occurred when navigating to the site without specifying "https".

dougwaldron commented 6 months ago

This will be fixed by adding this line to the "appsettings.json" files:

  "https_port": 443

See "Port configuration" in Enforce HTTPS in ASP.NET Core | Microsoft Learn