How to set csrf token to cookie by sinatra or patrino framework

want to write a background api service with patrino and request cross-domain. How to solve the csrf problem?

Mar.23,2022
Menu