Browse Source

Update Security-Headers.md

pull/16758/head
Salih 3 years ago
parent
commit
8ffcb588ff
  1. 23
      docs/en/UI/AspNetCore/Security-Headers.md

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

@ -74,3 +74,26 @@ Configure<AbpSecurityHeadersOptions>(options =>
});
});
```
### Ignore Abp Security Headers
You can ignore the Abp Security Headers for some actions or pages. You can use the `IgnoreAbpSecurityHeaderAttribute` attribute for this.
**Example:**
```csharp
@using Volo.Abp.AspNetCore.Security
@attribute [IgnoreAbpSecurityHeaderAttribute]
```
**Example:**
```csharp
[IgnoreAbpSecurityHeaderAttribute]
public class IndexModel : AbpPageModel
{
public void OnGet()
{
}
}
```
Loading…
Cancel
Save