Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

What is the default ASP.NET http/https launch profiles (launchSettings.json) server and how do I configure it?

$
0
0

For the last few years, the default launch profile for ASP.NET Core projects are http or https (beside IIS Express). I can't find any info on what exactly is launched (is it Kestrel?) or how do I configure it.

For example, I would like to add Cache-Control: no-store to all responses while developing the app. For ASP.NET Core websites, I could add a middleware to handle it but for Blazor WebAssembly apps there is no way to control the response beside IIS Express's web.config (which also is not very convenient to edit).

Please give me a documentation on these configurations. Can I add a response header to the local launchSettings.json file?


According to my search, apparently the only solution currently is to run an additional ASP.NET hosted project.

You can work around this today by running as an ASP.NET Core hosted app and setting the headers in the server project.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>