'Get Anti Forgery Token From .net Framework

I am trying to get an anti forgery token from my asp.Net Framework Application which is already up and running. I created a new react application completed Isolated from it but I want to use the asp.Net API side of things which requires me to have an AntiForgeryToken. I was wondering how would I be able to pass the Anti Forgery Token from my asp.Net application to React? Would I have to create a get Method to retrieve the token?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source