From 5d431b81c79661492a5883c94b961e8488f1f3f3 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sat, 8 Jul 2023 18:20:48 -0400 Subject: [PATCH] Add canonical domain support --- src/JobsJobsJobs/Application/App.fs | 2 ++ src/JobsJobsJobs/Application/JobsJobsJobs.Application.fsproj | 4 ++++ src/JobsJobsJobs/Directory.Build.props | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/JobsJobsJobs/Application/App.fs b/src/JobsJobsJobs/Application/App.fs index 0109a62..af1d2e2 100644 --- a/src/JobsJobsJobs/Application/App.fs +++ b/src/JobsJobsJobs/Application/App.fs @@ -3,6 +3,7 @@ module JobsJobsJobs.App open System open System.Text +open BitBadger.AspNetCore.CanonicalDomains open Giraffe open Giraffe.EndpointRouting open JobsJobsJobs.Common.Data @@ -71,6 +72,7 @@ let main args = ] let _ = app.UseForwardedHeaders () + let _ = app.UseCanonicalDomains () let _ = app.UseCookiePolicy (CookiePolicyOptions (MinimumSameSitePolicy = SameSiteMode.Strict)) let _ = app.UseStaticFiles () let _ = app.UseRouting () diff --git a/src/JobsJobsJobs/Application/JobsJobsJobs.Application.fsproj b/src/JobsJobsJobs/Application/JobsJobsJobs.Application.fsproj index ef31249..2182e7f 100644 --- a/src/JobsJobsJobs/Application/JobsJobsJobs.Application.fsproj +++ b/src/JobsJobsJobs/Application/JobsJobsJobs.Application.fsproj @@ -29,4 +29,8 @@ + + + + diff --git a/src/JobsJobsJobs/Directory.Build.props b/src/JobsJobsJobs/Directory.Build.props index 2ef9e4b..7df57c2 100644 --- a/src/JobsJobsJobs/Directory.Build.props +++ b/src/JobsJobsJobs/Directory.Build.props @@ -4,7 +4,7 @@ enable embedded false - 3.1.0.0 - 3.1.0.0 + 3.1.1.0 + 3.1.1.0