My WebAPI is just an API backend for my user interface. In fact, I will probably have 10 WebAPI services that my user interface will use.
I find it difficult to understand what I need to consider in terms of security.
My APIs are protected with carrier tokens and only allow https. I have CORS and they only allow the beginning. https://my-front.end
It all works fine.
How can I protect against C / XSRF and repeated attacks on WebAPI? Do I even need to?
Configuring anti-CSRF is pretty painless with the ASP.NET MVC project, but how can you do it on WebAPI, since I understand that it relies on sending information generated on the server to the client to send along the request body and through another channel (for example cookie or header). I read that you can protect against repeated attacks using nonce (like a timestamp and a random number) - some of them - but cannot find implementation examples.
Is there anything else I need to consider?
Edit: front end uses vue.js, but we have a very competent JS programmer, so any front-end implementations will not be a problem. This is just a question of what needs to be done!
It is also worth noting that for obviousness, WebAPI and FrontEnd run on different servers, so these are, in fact, cross-origin calls.