resource.vpress.vn

This commit is contained in:
thienqb123456
2024-09-03 09:23:03 +07:00
commit 6ae596376f
133 changed files with 7729 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
namespace ngaoda
{
public class CustomResponseHeaderMiddleware
{
private readonly RequestDelegate _next;
public CustomResponseHeaderMiddleware(RequestDelegate next)
{
_next = next;
}
public async Task InvokeAsync(HttpContext context)
{
context.Response.OnStarting(() =>
{
context.Response.Headers.Add("Access-Control-Allow-Origin", "*");
return Task.CompletedTask;
});
await _next(context);
}
}
}