Browse Source

Merge pull request #19694 from abpframework/auto-merge/prerel-8-2/2681

Merge branch dev with prerel-8.2
pull/19703/head
maliming 2 years ago
committed by GitHub
parent
commit
a681005cf7
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