From cca28f3f1c61fc34957a3e0419e5005fe352351c Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 28 Jan 2024 10:01:13 +0100 Subject: [PATCH] add cors server --- backend/MemeBE/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/MemeBE/Program.cs b/backend/MemeBE/Program.cs index 5df31d8..5462b3e 100644 --- a/backend/MemeBE/Program.cs +++ b/backend/MemeBE/Program.cs @@ -13,7 +13,7 @@ { options.AddPolicy("MyCorsPolicy", builder => { - builder.WithOrigins("https://nice-water-0ee9aa403.4.azurestaticapps.net", "http://localhost:63342", "https://memethegathering.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/") // URL innego serwera .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials(); // Ważne dla SignalR