Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Duende.IdentityServer.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Duende.IdentityServer" Version="7.4.3" />
<PackageReference Include="Duende.IdentityServer" Version="7.4.6" />
<PackageReference Include="Duende.AspNetCore.Authentication.JwtBearer" Version="0.3.0" />
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />
</ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Pages/SecurityHeadersAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public override void OnResultExecuting(ResultExecutingContext context)
//csp += "upgrade-insecure-requests;";
// also an example if you need client images to be displayed from twitter
// csp += "img-src 'self' https://pbs.twimg.com;";

// Google Fonts
csp += "font-src 'self' fonts.gstatic.com; style-src 'self' fonts.googleapis.com";

// once for standards compliant browsers
if (!context.HttpContext.Response.Headers.ContainsKey("Content-Security-Policy"))
Expand Down