diff options
author | vnugent <public@vaughnnugent.com> | 2023-03-25 14:25:21 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-03-25 14:25:21 -0400 |
commit | f56566feeeff0441ba8dd22e4ed755fab1ef7e11 (patch) | |
tree | 08078e0021b1f25d4ec537eb8225d3f703e522ff /plugins | |
parent | 2027296bb0bd1e72f93c4f470cadca153c7ec2dd (diff) |
Defer cors to host/middleware/user code
Diffstat (limited to 'plugins')
3 files changed, 6 insertions, 7 deletions
diff --git a/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs b/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs index b350e73..24ca56c 100644 --- a/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs +++ b/plugins/CacheBroker/src/Endpoints/BrokerRegistrationEndpoint.cs @@ -92,12 +92,11 @@ namespace VNLib.Plugins.Cache.Broker.Endpoints private readonly Dictionary<string, ActiveServer> ActiveServers; //Loosen up protection settings since this endpoint is not desinged for browsers or sessions + ///<inheritdoc/> protected override ProtectionSettings EndpointProtectionSettings { get; } = new() { DisableBrowsersOnly = true, - DisableCrossSiteDenied = true, - DisableSessionsRequired = true, - DisableVerifySessionCors = true, + DisableSessionsRequired = true }; public BrokerRegistrationEndpoint(PluginBase plugin, IConfigScope config) 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<IPAddress[]> BrokerIpList; private readonly PluginBase Pbase; + ///<inheritdoc/> protected override ProtectionSettings EndpointProtectionSettings { get; } = new() { DisableBrowsersOnly = true, - DisableSessionsRequired = true, - DisableVerifySessionCors = true + DisableSessionsRequired = true }; public BrokerHeartBeat(Func<string> 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 + ///<inheritdoc/> protected override ProtectionSettings EndpointProtectionSettings { get; } = new() { DisableBrowsersOnly = true, - DisableSessionsRequired = true, - DisableCrossSiteDenied = true + DisableSessionsRequired = true }; public ConnectEndpoint(PluginBase plugin, IConfigScope config) |