Browse Source

Merge pull request #19693 from abpframework/auto-merge/rel-8-1/2680

Merge branch prerel-8.2 with rel-8.1
pull/19694/head
maliming 2 years ago
committed by GitHub
parent
commit
61c76d04fc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      docs/en/UI/AspNetCore/Security-Headers.md

4
docs/en/UI/AspNetCore/Security-Headers.md

@ -38,7 +38,7 @@ Security Headers middleware is an ASP.NET Core request pipeline [middleware](htt
app.UseAbpSecurityHeaders();
```
> You can add this middleware into the `OnApplicationInitialization` method of your module class to register it to the request pipeline. This middleware is already configured in the [ABP Commercial Startup Templates](https://docs.abp.io/en/commercial/latest/startup-templates/index), so you don't need to manually add it if you are using one of these startup templates.
> You can add this middleware after `app.UseRouting()` in your module class's `OnApplicationInitialization` method to register it to the request pipeline. This middleware is already configured in the [ABP Commercial Startup Templates](https://docs.abp.io/en/commercial/latest/startup-templates/index), so you don't need to manually add it if you are using one of these startup templates.
After that, you have registered the `UseAbpSecurityHeaders` middleware into the request pipeline, the defined security headers will be shown in the response headers as in the figure below:
@ -96,4 +96,4 @@ public class IndexModel : AbpPageModel
{
}
}
```
```

Loading…
Cancel
Save