aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Net/IHttpServer.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-05-15 03:18:16 +0300
committerGitHub <noreply@github.com>2020-05-15 03:18:16 +0300
commited751aa054a0243e6e283dd9f4ccfb56abc0c826 (patch)
tree00e2a5b825988cb772790c0df28c43903c605005 /MediaBrowser.Controller/Net/IHttpServer.cs
parent5ce008e02f0500c5d0298067fa401a740742e3f0 (diff)
parent9ee10d22c8ccbeb9eb4112b1a9f520d5ed998013 (diff)
Merge pull request #3084 from fhriley/fix_allow_origin
Fix #3083: Set the Access-Control-Allow-Origin header to the request …
Diffstat (limited to 'MediaBrowser.Controller/Net/IHttpServer.cs')
-rw-r--r--MediaBrowser.Controller/Net/IHttpServer.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Net/IHttpServer.cs b/MediaBrowser.Controller/Net/IHttpServer.cs
index f1c441761..efb5f4ac3 100644
--- a/MediaBrowser.Controller/Net/IHttpServer.cs
+++ b/MediaBrowser.Controller/Net/IHttpServer.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MediaBrowser.Model.Events;
+using MediaBrowser.Model.Services;
using Microsoft.AspNetCore.Http;
namespace MediaBrowser.Controller.Net
@@ -38,5 +39,12 @@ namespace MediaBrowser.Controller.Net
/// <param name="context"></param>
/// <returns></returns>
Task RequestHandler(HttpContext context);
+
+ /// <summary>
+ /// Get the default CORS headers
+ /// </summary>
+ /// <param name="req"></param>
+ /// <returns></returns>
+ IDictionary<string, string> GetDefaultCorsHeaders(IRequest req);
}
}