Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Apr 16, 2024
1 parent c41da88 commit 973b3c0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ public async ValueTask UpdateAsync(IDictionary<string, string> securityPolicies,
}
}

/// <summary>
/// Enable the CSP headers necessary for Google Analytics, even if the <c>OrchardCore.Google.Analytics</c> module is
/// not enabled.
/// </summary>
/// <param name="context">The current <see cref="HttpContext"/>.</param>
public static void EnableForCurrentRequest(HttpContext context) => context.Items[HttpContextItemKey] = "enabled";
}

0 comments on commit 973b3c0

Please sign in to comment.