IdentityServer3 で Google フォントを使用するために、次の Content-Security-Policy は機能しませんでした。
<meta http-equiv="Content-Security-Policy"
content=" style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
font-src 'self' 'unsafe-inline' https://fonts.gstatic.com data:">
代わりに、機能した idsrvApp.UseIdentityServer コンストラクターで CspOptions を構成しました。
CspOptions = new CspOptions {
FontSrc = "https://fonts.gstatic.com",
StyleSrc = "https://fonts.googleapis.com",
Enabled = true
}
IdentityServer4 で CspOptions を構成するにはどうすればよいですか? 見つからなくて困っています。