Pemvedr.Common.AspNetCore 0.2.20241030.1
#«Pemvedr.Common.AspNetCore»
Structure
Security: Utilities to facilitate the security of an aspnet core website
Examples
Recommended security
public void ConfigureServices(IServiceCollection services)
=> services.AddForRecommendedOrder(options => options
.UseCallingAssemblyAsApplicationName()
.WithTrustedLocations(Configuration.Get<StartupOptions>().CorsOrigins.ToArray())
.WithRecommendedSecurityOptions(securityOptions => securityOptions
.WithCors(builder => builder
.AllowCredentials()
.WithHeaders("x-requested-with")
.WithHeaders("content-type"))))
public void Configure(IApplicationBuilder app) =>
// use as early as possible because it contains order sensitive parts (CookiePolicy middleware)
app.UseRecommendedOrder();
Development hints
none
See also
none
Showing the top 20 packages that depend on Pemvedr.Common.AspNetCore.
.NET 8.0
- Pemvedr.Common.ExtensionMethods (>= 0.6.20240401.1)
- Pemvedr.Common.Logging (>= 0.1.20240401.1)
- Pemvedr.Common.Utilities (>= 0.5.20241030.1)
- Asp.Versioning.Mvc.ApiExplorer (>= 8.1.0)
- Duende.AccessTokenManagement.OpenIdConnect (>= 3.0.0)
- LazyCache (>= 2.4.0)
- Microsoft.AspNetCore.Authentication.OpenIdConnect (>= 8.0.10)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 8.1.2)
- Swashbuckle.AspNetCore (>= 6.9.0)
- Swashbuckle.AspNetCore.Newtonsoft (>= 6.9.0)
| Version | Downloads | Last updated |
|---|---|---|
| 0.2.20250909.1 | 7 | 09/08/2025 |
| 0.2.20241117.2 | 10 | 11/17/2024 |
| 0.2.20241030.1 | 9 | 10/30/2024 |
| 0.2.20240903.1 | 8 | 09/02/2024 |
| 0.2.20240706.1 | 7 | 07/06/2024 |
| 0.2.20240620.2 | 7 | 06/20/2024 |
| 0.2.20240602.1 | 10 | 06/02/2024 |
| 0.2.20240520.1 | 7 | 05/20/2024 |
| 0.2.20240425.1 | 7 | 04/25/2024 |
| 0.2.20240409.1 | 7 | 04/09/2024 |
| 0.2.20240401.1 | 6 | 04/01/2024 |
| 0.2.20240224.3 | 7 | 02/24/2024 |
| 0.2.20240210.3 | 7 | 02/10/2024 |
| 0.2.20240201.1 | 7 | 02/01/2024 |
| 0.2.20240130.2 | 7 | 01/30/2024 |
| 0.2.20240128.3 | 6 | 01/28/2024 |
| 0.2.20240128.1 | 7 | 01/27/2024 |
| 0.2.20240123.5 | 8 | 01/23/2024 |
| 0.2.20240113.1 | 8 | 01/13/2024 |
| 0.2.20231219.1 | 6 | 12/19/2023 |
| 0.2.20231209.7 | 7 | 12/09/2023 |
| 0.2.20231129.1 | 6 | 11/29/2023 |
| 0.2.20231127.4 | 8 | 11/27/2023 |
| 0.2.20231105.3 | 7 | 11/05/2023 |
| 0.2.20221229.2 | 11 | 12/28/2022 |
| 0.2.20220924.3 | 7 | 09/24/2022 |
| 0.2.20220422.3 | 6 | 05/15/2022 |
| 0.2.20220422.2 | 6 | 05/15/2022 |
| 0.2.20220420.2 | 5 | 05/15/2022 |
| 0.2.20220327.1 | 5 | 05/15/2022 |
| 0.2.20220308.2 | 6 | 05/15/2022 |
| 0.2.20220308.1 | 6 | 05/15/2022 |
| 0.2.20220219.2 | 7 | 05/15/2022 |
| 0.2.20220212.1 | 7 | 05/15/2022 |
| 0.2.20211020.1 | 9 | 05/15/2022 |
| 0.2.20210922.1 | 5 | 05/15/2022 |
| 0.2.20210912.1 | 6 | 05/15/2022 |
| 0.1.20210715.1 | 6 | 05/15/2022 |
| 0.1.20210629.3 | 7 | 05/15/2022 |
| 0.1.20210612.1 | 6 | 05/15/2022 |
| 0.1.20210605.1 | 10 | 05/15/2022 |