stefanprodan / WebApiThrottle

ASP.NET Web API rate limiter for IIS and Owin hosting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preflight Error raised

ahmedsaidzahran opened this issue · comments

I handled Preflight and it works fine.
but when used WebApiThrottle, it fires preflight errors from Ionic app and don't know when.

       config.MessageHandlers.Add(new CustomThrottlingHandler()
        {
            Policy = new ThrottlePolicy(perSecond: 5, perMinute: 300)
            {
                IpThrottling = true,
                EndpointThrottling = true,
                ClientThrottling = true
            },
            Repository = new CacheRepository()
        });