From de0d27e514eb1529995b996236e85c5e8a2b2380 Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 18 Nov 2022 01:04:53 +0000 Subject: [PATCH] feat(api): don't handle CORS locally --- PluralKit.API/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.API/Startup.cs b/PluralKit.API/Startup.cs index ca2b7eec..2bcb5355 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -128,7 +128,7 @@ public class Startup app.UseMiddleware(); //app.UseHttpsRedirection(); - app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization", "sentry-trace")); + // app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization", "sentry-trace")); app.UseRouting(); app.UseAuthentication();