If we want to determine the mime type of a given file, we can use the MimeTypeMap NuGet package. I found it very efficient and up to date with additions from many contributors.
Cheers,
Samitha
If we want to determine the mime type of a given file, we can use the MimeTypeMap NuGet package. I found it very efficient and up to date with additions from many contributors.
Cheers,
Samitha
When integrating Vuie Js with .Net Core 6/7, I found this youtube video really helpful. As .Net core APi and Vue js run in its own port I had to first run the API in one browser instance and Vue js frontend in another instance (typically http://localhost:8080/)
Cheers,
Samitha
When working with a WEB API if you want to share resources between different domains we need to enable CORS in Program.cs as shown below.
app.UseCors(builder => builder
.AllowAnyHeader()
.AllowAnyMethod()
.AllowAnyOrigin()
);
Note that it is recommended to have this after app.UseRouting(); middleware.Cheers,
Samitha
I was under the impression Asp.Net core can have only one directory for static files. Recently I came across this article and it shows how we can configure multiple directories for Static Files in ASP.NET Core.
Cheers,
Samitha
Recently my machine gave me some trouble when trying to remove some app from it. I came across this useful post having options remove problematic apps/programs from a windows 10/11 PC.
From the given list Method V - Run the Microsoft Install/Uninstall troubleshooter was the quickest one worked for me.
Cheers,
Samitha
When designing WEB APIs we, as developers are interested in response codes returned after doing an operation.
Following are the response codes and there meanings
Regards,
Samitha
GitHub Codespaces templates provides you quick and easy development setup you need, Check this video for more information.
Regards,
Samitha