From f56566feeeff0441ba8dd22e4ed755fab1ef7e11 Mon Sep 17 00:00:00 2001 From: vnugent Date: Sat, 25 Mar 2023 14:25:21 -0400 Subject: Defer cors to host/middleware/user code --- plugins/ObjectCacheServer/src/Endpoints/BrokerHeartBeat.cs | 4 ++-- plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/ObjectCacheServer/src/Endpoints') diff --git a/plugins/ObjectCacheServer/src/Endpoints/BrokerHeartBeat.cs b/plugins/ObjectCacheServer/src/Endpoints/BrokerHeartBeat.cs index 3930f90..97061b3 100644 --- a/plugins/ObjectCacheServer/src/Endpoints/BrokerHeartBeat.cs +++ b/plugins/ObjectCacheServer/src/Endpoints/BrokerHeartBeat.cs @@ -48,11 +48,11 @@ namespace VNLib.Data.Caching.ObjectCache.Server private readonly Task BrokerIpList; private readonly PluginBase Pbase; + /// protected override ProtectionSettings EndpointProtectionSettings { get; } = new() { DisableBrowsersOnly = true, - DisableSessionsRequired = true, - DisableVerifySessionCors = true + DisableSessionsRequired = true }; public BrokerHeartBeat(Func token, ManualResetEvent keepaliveSet, Uri brokerUri, PluginBase pbase) diff --git a/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs b/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs index 6517537..2f896bc 100644 --- a/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs +++ b/plugins/ObjectCacheServer/src/Endpoints/ConnectEndpoint.cs @@ -75,11 +75,11 @@ namespace VNLib.Data.Caching.ObjectCache.Server public CacheConfiguration CacheConfig { get; } //Loosen up protection settings + /// protected override ProtectionSettings EndpointProtectionSettings { get; } = new() { DisableBrowsersOnly = true, - DisableSessionsRequired = true, - DisableCrossSiteDenied = true + DisableSessionsRequired = true }; public ConnectEndpoint(PluginBase plugin, IConfigScope config) -- cgit