fix #1691 - AntiForgeryToken header not being set during startup

This commit is contained in:
Shaun Walker
2021-09-27 08:44:16 -04:00
parent 82ae9409f1
commit 4bfb5d9f34
3 changed files with 22 additions and 5 deletions

View File

@ -41,5 +41,11 @@ namespace Oqtane.Services
/// <param name="email">Email of the user to be registered</param>
/// <returns></returns>
Task RegisterAsync(string email);
/// <summary>
/// Sets the antiforgerytoken header so that it is included on all HttpClient calls for the lifetime of the app
/// </summary>
/// <returns></returns>
void SetAntiForgeryTokenHeader(string antiforgerytokenvalue);
}
}