Debra Hodges

Debra Hodges

  • 1.6k
  • 98
  • 1.1k

ASP.Net MVC Authorize attribute not working with Sammy JS

Apr 22 2020 11:32 AM
Hello,
 
Regarding this article: 
https://www.c-sharpcorner.com/article/lightweight-single-page-application-with-mvc-and-sammyjs/
 
I have a SPA app using Sammy JS, but get this error when accessing a controller from Sammy JS routing, "Failed to load resource: the server responded with a status of 401 (Unauthorized)". I'm using forms authentication with an api call to authorize the user. How do I get around this error?
 
Thank you,
Debra 

Answers (2)