Skip to content

Commit

Permalink
Add UseStrictAndSecureCookies to the security defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Jan 9, 2024
1 parent fb99d1e commit 889cb22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public static OrchardCoreBuilder ConfigureSecurityDefaults(
app
.UseContentSecurityPolicyHeader(allowInlineScript, allowInlineStyle)
.UseNosniffContentTypeOptionsHeader();
.UseNosniffContentTypeOptionsHeader()
.UseStrictAndSecureCookies();
},
order: 99); // Makes this service load fairly late. This should make the setup detection more accurate.
return builder
Expand Down

0 comments on commit 889cb22

Please sign in to comment.