From 4b35c3f75cccde58d1272b86d37068422789d9ed Mon Sep 17 00:00:00 2001 From: CodeLiturgy Date: Sun, 11 Sep 2022 04:22:01 +0100 Subject: [PATCH] Startup modified --- BlueWest.Api/Startup.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BlueWest.Api/Startup.cs b/BlueWest.Api/Startup.cs index 427cbc7..93808cf 100644 --- a/BlueWest.Api/Startup.cs +++ b/BlueWest.Api/Startup.cs @@ -44,13 +44,12 @@ namespace BlueWest.WebApi { services.AddCors(options => { - /*options.AddPolicy(name: MyAllowSpecificOrigins, + options.AddPolicy(name: MyAllowSpecificOrigins, builder => { - builder.WithOrigins("http://localhost", "http://127.0.0.1", "http://localhost:3000", - "http://127.0.0.1:3000", "localhost:3000", "127.0.0.1:3000") + builder.WithOrigins("http://127.0.0.1:5173", "localhost:5173", "127.0.0.1:5173") .AllowAnyHeader().AllowAnyMethod(); - });*/ + }); }); services