问题
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