From 1c48cb2fc7881ad978fde8059963f7ab6e1a093a Mon Sep 17 00:00:00 2001 From: Bella | Nightshade <47324660+xBelladonna@users.noreply.github.com> Date: Wed, 17 Jul 2019 21:09:07 +0930 Subject: [PATCH] Send CORS allowed headers in API response (#114) Sends Access-Control-Allow-Headers Content-Type and Authorization in the API response headers --- 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 0165154d..acd6c7bd 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -49,7 +49,7 @@ namespace PluralKit.API } //app.UseHttpsRedirection(); - app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin()); + app.UseCors(opts => opts.AllowAnyMethod().AllowAnyOrigin().WithHeaders("Content-Type", "Authorization")); app.UseMiddleware(); app.UseMvc(); }