Skip to content

Commit

Permalink
Update src/OrchardCore.Modules/OrchardCore.Cors/Controllers/AdminCont…
Browse files Browse the repository at this point in the history
…roller.cs

Co-authored-by: Mike Alhayek <[email protected]>
  • Loading branch information
giannik and MikeAlhayek authored Feb 13, 2024
1 parent e8e4901 commit 5496035
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public async Task<ActionResult> IndexPOST()
await _shellHost.ReleaseShellContextAsync(_shellSettings);

await _notifier.SuccessAsync(H["The CORS settings have updated successfully."]);
if (policyWarnings.Any())
if (policyWarnings.Count > 0)
{
var warning1 = "Specifying AllowAnyOrigin and AllowCredentials is an insecure configuration and can result in cross-site request forgery. The CORS service returns an invalid CORS response when an app is configured with both methods.";
var warning2 = "<strong>Affected policies: " + string.Join(", ", policyWarnings) + "</strong>";
Expand Down

0 comments on commit 5496035

Please sign in to comment.