Skip to content

Commit

Permalink
Merge pull request #32 from egvijayanand/working
Browse files Browse the repository at this point in the history
Added CORS request header
  • Loading branch information
egvijayanand authored Oct 25, 2023
2 parents 9af4c1f + 0d35f51 commit 75f9532
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BlazorApp/BlazorApp.Wasm/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static async Task Main(string[] args)
//client.BaseAddress = new Uri("https://raw.githubusercontent.com/weeklyxamarin/WeeklyXamarin.content/master/content/");
// Since everything is JSON file content, making use of the direct URLs
client.BaseAddress = new Uri("https://github.com/weeklyxamarin/WeeklyXamarin.content/blob/master/content/");
client.DefaultRequestHeaders.Add("Access-Control-Allow-Origin", "*");
});

await host.Build().RunAsync();
Expand Down

0 comments on commit 75f9532

Please sign in to comment.