From 39fa905733e9e6a201fc35a470ec1825ac46fc34 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 May 2023 18:11:18 +0200 Subject: [PATCH] Access-Control-Allow-Methods --- Tranga-API/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Tranga-API/Program.cs b/Tranga-API/Program.cs index b0fb94b..778e976 100644 --- a/Tranga-API/Program.cs +++ b/Tranga-API/Program.cs @@ -36,6 +36,7 @@ builder.Services.AddCors(options => policy => { policy.WithOrigins("http://localhost", "http://127.0.0.1", "http://localhost:63342"); + policy.WithMethods("GET", "POST", "DELETE"); }); });