In our .net core sites we have this in the Startup.cs
or Program.cs
file:
app.Use(async (context, next) =>
{
context.Response.Headers.Add("Content-Security-Policy", "frame-ancestors 'self' https://localhost:5000 https://*.yourdomainhere.com https://*.azurewebsites.net");
context.Response.Headers.Add("X-Frame-Options", "SAMEORIGIN");
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy
// https://developer.mozilla.org/en-US/docs/Web/API/Topics_API
context.Response.Headers.Add("Permissions-Policy", "browsing-topics=()");
await next();
});
I'd highly recommend checking that first line to ensure you have the domains entered properly.