This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configure the HTTP request pipeline | |
// To allow this Blazor App app to be iframed in another app | |
app.Use(async (context, next) => | |
{ | |
// How to display the app in an iframe | |
context.Response.OnStarting(() => | |
{ | |
// Remove X-Frame-Options header | |
context.Response.Headers.Remove("X-Frame-Options"); |