-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Milestone
Description
Description
By having a JSON element in appSettings, disregarding the environment. It seems that the binder can't map the "ContentSecurityPolicy" children elements:
"ContentSecurityPolicy": {
"DefaultSrc": [],
"ScriptSrc": [],
"FrameAncestors": [],
"PluginTypes": [],
"ReportTo": [],
"NavigateTo": []
}E.g:
IConfiguration configuration = ... ;
IConfigurationSection cspSection = _configuration?.GetSection("ContentSecurityPolicy");
Assert.IsFalse(cspSection.GetChildren().Any()); //passedOther information
Is this somehow related with this closed issue?
Reactions are currently unavailable