diff options
| author | Frank Riley <fhriley@gmail.com> | 2020-05-07 20:36:50 -0700 |
|---|---|---|
| committer | Frank Riley <fhriley@gmail.com> | 2020-05-14 16:15:03 -0700 |
| commit | 3cb6fd8a2754837c787213c008ad84a973eb7cab (patch) | |
| tree | 6126dec4ca6b531d95e783e0826b8865eeaa30d0 /MediaBrowser.Controller/Net/IHttpServer.cs | |
| parent | 5ce008e02f0500c5d0298067fa401a740742e3f0 (diff) | |
Fix #3083: Set the Access-Control-Allow-Origin header to the request origin/host header if possible
Diffstat (limited to 'MediaBrowser.Controller/Net/IHttpServer.cs')
| -rw-r--r-- | MediaBrowser.Controller/Net/IHttpServer.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Net/IHttpServer.cs b/MediaBrowser.Controller/Net/IHttpServer.cs index f1c441761..eb2b4670a 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> GetCorsHeaders(IRequest req); } } |
