gets anti-forgery working (needs more testing)

This commit is contained in:
Shannon
2020-05-26 22:21:22 +10:00
parent 7f47540341
commit 6a4c277fdc
7 changed files with 167 additions and 108 deletions

View File

@@ -39,10 +39,13 @@ namespace Umbraco.Web.UI.BackOffice
// relying on a global configuration set by a user since if a custom IControllerActivator is used for our own controllers we may not
// guarantee it will work. And then... is that even possible?
// TODO: we will need to simplify this and prob just have a one or 2 main method that devs call which call all other required methods,
// but for now we'll just be explicit with all of them
services.AddUmbracoConfiguration(_config);
services.AddUmbracoCore(_env, out var factory);
services.AddUmbracoWebComponents();
services.AddUmbracoRuntimeMinifier(_config);
services.AddUmbracoBackOffice();
services.AddUmbracoBackOfficeIdentity();
services.AddMvc();