RickStrahl / Westwind.AspnetCore.LiveReload

ASP.NET Core Live Reload Middleware that monitors file changes in your project and automatically reloads the browser's active page
Other
473 stars 42 forks source link

Do you think this script injection approach could work for setting base href for blazor spa's? #53

Closed dazinator closed 3 years ago

dazinator commented 3 years ago

I read your blog post: https://weblog.west-wind.com/posts/2020/Mar/29/Content-Injection-with-Response-Rewriting-in-ASPNET-Core-3x#response-wrapping-in-net-core-2x

I'm thinking of using a similar approach for rewriting the <base href="" /> html tag when a blazor wasm spa is served up via static files. Do you think the approach remains suitable as I know things have moved on a bit and we are on dotnet 5.0 now! ;-)

dazinator commented 3 years ago

Forget it... it looks way too complicated!! I'll statically modify the physical html file on the server before it gets served up instead.. as long as it doesn't fail browser integrity checks.