Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Donn Relacion committed Jul 2, 2022
1 parent e3d458e commit 3d75726
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Given an application with a configure services section like below:
services.AddLogging();
services.AddHsts(options =>
{
options.Preload = true;
options.IncludeSubDomains = true;
options.MaxAge = TimeSpan.FromDays(365);
options.Preload = true;
options.IncludeSubDomains = true;
options.MaxAge = TimeSpan.FromDays(365);
});
services.Configure<CookiePolicyOptions>(options =>
{
options.HttpOnly = HttpOnlyPolicy.Always;
options.Secure = CookieSecurePolicy.Always;
options.HttpOnly = HttpOnlyPolicy.Always;
options.Secure = CookieSecurePolicy.Always;
});
```

Expand All @@ -29,18 +29,18 @@ services.AddFromConfiguration(Configuration, "Services");

```json
{
"Services": {
"Logging": true,
"Hsts": {
"Preload": true,
"IncludeSubDomains": true,
"MaxAge": "356.00:00:00"
},
"Configure<Microsoft.AspNetCore.Builder.CookiePolicyOptions>": {
"HttpOnly": "Always",
"Secure": "Always"
}
}
"Services": {
"Logging": true,
"Hsts": {
"Preload": true,
"IncludeSubDomains": true,
"MaxAge": "356.00:00:00"
},
"Configure<Microsoft.AspNetCore.Builder.CookiePolicyOptions>": {
"HttpOnly": "Always",
"Secure": "Always"
}
}
}
```

Expand Down

0 comments on commit 3d75726

Please sign in to comment.