aspnet / MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1.3k stars 878 forks source link

Update use of Antiforgery + Ajax to built-in header support #580

Closed rynowak closed 8 years ago

rynowak commented 8 years ago

Our use of antiforgery for ajax in this sample is a bit ad-hoc. https://github.com/aspnet/MusicStore/blob/5a3c4957d9707a9901891a6b909863d1a34cc37f/src/MusicStore/Controllers/ShoppingCartController.cs#L72

We have built in support for using a header for antiforgery in rc2, we should update the sample to use our recommended pattern.