Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jul 9, 2024
1 parent 552660f commit 3d37075
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://developers.cloudflare.com/pages/configuration/headers/
# https://yurl.chayev.com/
/.well-known/apple-app-site-association
Content-Type: application/json; charset=utf-8
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@
</Content>
</ItemGroup>

<ItemGroup>
<Folder Include="App_Data\" />
</ItemGroup>

<!--
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
https://learn.microsoft.com/en-us/visualstudio/containers/container-msbuild-properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<Folder Include="App_Data\" />
</ItemGroup>

<!--
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
https://learn.microsoft.com/en-us/visualstudio/containers/container-msbuild-properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Reflection;
using System.Runtime.Loader;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Net.Http.Headers;
using Microsoft.Extensions.FileProviders;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.AspNetCore.Components.Endpoints;
using Boilerplate.Client.Core.Services;
Expand Down Expand Up @@ -65,6 +65,15 @@ private static void ConfiureMiddlewares(this WebApplication app)
}
});

// https://yurl.chayev.com/
app.UseStaticFiles(new StaticFileOptions()
{
FileProvider = new PhysicalFileProvider(Path.Combine(env.WebRootPath, @".well-known")),
RequestPath = new PathString("/.well-known"),
DefaultContentType = "application/json",
ServeUnknownFileTypes = true
});

app.UseCors();

app.UseAuthentication();
Expand Down

0 comments on commit 3d37075

Please sign in to comment.