From 59a4c1ecc0dd36405d3c6c6f2275ff7990e3a870 Mon Sep 17 00:00:00 2001 From: Meghan Date: Wed, 29 May 2024 11:22:41 -0700 Subject: [PATCH] Add site to CORS --- Wordle.Api/Wordle.Api/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wordle.Api/Wordle.Api/Program.cs b/Wordle.Api/Wordle.Api/Program.cs index 94ba6517..55cb9e08 100644 --- a/Wordle.Api/Wordle.Api/Program.cs +++ b/Wordle.Api/Wordle.Api/Program.cs @@ -23,7 +23,7 @@ { options.AddPolicy(name: AllOrigins, policy => { - policy.WithOrigins("http://localhost:3000"); + policy.WithOrigins("http://localhost:3000, https://orange-forest-0eb1d671e.5.azurestaticapps.net"); policy.AllowAnyMethod(); policy.AllowAnyHeader(); policy.AllowCredentials();