I'm building API that will be consumed by both web...
# general
h
I'm building API that will be consumed by both web and mobile clients. I've already implemented CSRF protection for the entire API. My API will be a middleman between the client and Kratos (Kratos will never be exposed to the public). Seeing as my API already has CSRF protection, doesn't this mean it's irrelevant whether my web client calls my Go API, which then calls methods such as
cli.FrontendAPI.CreateNativeRegistrationFlow
(which it said is not secure to use for web clients)? Because it doesn't make sense to me to manage two CSRF tokens (both my API's and the one for Kratos). So instead, I'm thinking the best practice here is to just use
CreateNativeRegistrationFlow
for both web and mobile clients. Can someone please confirm if this is definitely secure?