Skip to content

Commit

Permalink
Merge pull request #11 from Timmlion/feature/jebanecorsy
Browse files Browse the repository at this point in the history
add cors
  • Loading branch information
Timmlion authored Jan 31, 2024
2 parents 1072469 + cb0d4d5 commit 4bd7322
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/MemeBE/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
{
options.AddPolicy("MyCorsPolicy", builder =>
{
builder.WithOrigins("https://nice-water-0ee9aa403.4.azurestaticapps.net", "http://localhost:63342", "https://memethegathering.wielki.ch", "https://mtg.wielki.ch") // URL innego serwera
builder.WithOrigins("https://nice-water-0ee9aa403.4.azurestaticapps.net",
"http://localhost:63342",
"https://memethegathering.wielki.ch",
"https://mtg.wielki.ch",
"https://mtgapi.adamsiwek.pl") // URL innego serwera
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials(); // Ważne dla SignalR
Expand Down

0 comments on commit 4bd7322

Please sign in to comment.