Skip to content

Commit

Permalink
Debug CORS headers & update fastendpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Nov 26, 2023
1 parent 54c3831 commit e05c29e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ProjectTemplates/ShinyAspNet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@
app.MapHub<BizHub>("/biz");
//#endif

#if DEBUG
// easier debugging
app.UseCors(x => x
.AllowAnyHeader()
.AllowAnyMethod()
.AllowAnyOrigin()
//.AllowCredentials()
);
#endif

if (app.Environment.IsDevelopment())
{
// if (app.Configuration.GetValue<bool>("EnsureDatabase", false))
Expand Down
2 changes: 1 addition & 1 deletion ProjectTemplates/ShinyAspNet/ShinyAspNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<MicrosoftVersion>8.0.0</MicrosoftVersion>
<FastEndpointsVersion>5.18.2</FastEndpointsVersion>
<FastEndpointsVersion>5.20.0-rc2</FastEndpointsVersion>
<!--#if (orleans)-->
<OrleansVersion>7.2.3</OrleansVersion>
<!--#endif-->
Expand Down

0 comments on commit e05c29e

Please sign in to comment.