From 2c51a2cdea9ca18adcff2c1b7afd661c7a39a8ac Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Thu, 6 Oct 2022 18:15:49 +0700 Subject: [PATCH] add cors --- TorchRemote.Plugin/Managers/ApiServerManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TorchRemote.Plugin/Managers/ApiServerManager.cs b/TorchRemote.Plugin/Managers/ApiServerManager.cs index 1d2fff0..9eb2fc4 100644 --- a/TorchRemote.Plugin/Managers/ApiServerManager.cs +++ b/TorchRemote.Plugin/Managers/ApiServerManager.cs @@ -54,6 +54,7 @@ public class ApiServerManager : Manager .WithUrlPrefix(_config.Listener.UrlPrefix) .WithMicrosoftHttpListener()) .WithLocalSessionManager() + .WithCors("/api", "*", "*", "*") .WithModule(apiModule .WithController() .WithController()