Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

using System;
using System.Collections.Generic;
using System.Linq;

using EPiServer.DependencyInjection;
using EPiServer.Shell.Modules;

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
Expand Down Expand Up @@ -106,16 +105,6 @@ public static IServiceCollection AddStottSecurity(
services.AddTransient<ICorsPolicyProvider, CustomCorsPolicyProvider>();
services.AddCors();

// Protected Modules
services.Configure<ProtectedModuleOptions>(
options =>
{
if (!options.Items.Any(x => string.Equals(x.Name, CspConstants.ModuleName, StringComparison.OrdinalIgnoreCase)))
{
options.Items.Add(new ModuleDetails { Name = CspConstants.ModuleName });
}
});

return services;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<Version>7.1.0.0</Version>
<Version>7.1.1.0</Version>
<RepositoryUrl>https://github.com/GeekInTheNorth/Stott.Security.Optimizely</RepositoryUrl>
<PackageProjectUrl>https://github.com/GeekInTheNorth/Stott.Security.Optimizely</PackageProjectUrl>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
Expand All @@ -14,10 +14,10 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<PackageReadmeFile>README.md</PackageReadmeFile>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
<AssemblyVersion>7.1.1.0</AssemblyVersion>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<PackageOutputPath>D:\Repos\Nuget</PackageOutputPath>
<PackageReleaseNotes>Update options for Permissions Policy and Response Headers.</PackageReleaseNotes>
<PackageReleaseNotes>Update options for Permissions Policy and Response Headers. Remove module warning.</PackageReleaseNotes>
<Nullable>enable</Nullable>
<Title>Stott Security</Title>
</PropertyGroup>
Expand Down
Loading