Web API suddenly returns 403 forbidden after a few successfull requests

只谈情不闲聊 提交于 2021-01-28 18:28:58

问题


I've been working on an ionic application in combination with an ASP.NET Web API. I'm using that API for all the data transfer.

I have been experiencing a problem: after a few successful requests, the API suddenly returns 403 forbidden. It seems like the API has a limitation or something, because it happens when I do multiple requests in a really short time.

The strange thing about this problem is that if I run the Web API locally it works perfectly fine, but if I host it on an external IIS server this problem shows up after a few requests. I end the process on the server to fix it temporary.

I hope some of you guys know this problem.

This might fix a lot for me in the future.

Thanks.


回答1:


The problem was inside my IIS Manager for the ASP.NET Web API. I had to increase the limit of my Dynamic IP Restrictions (DIPR), because the API returned an 403 error after a few requests at the same time. When I increased the limited I noticed that the problem was fixed.



来源:https://stackoverflow.com/questions/38592541/web-api-suddenly-returns-403-forbidden-after-a-few-successfull-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!