2
Answers

ASP.Net MVC Authorize attribute not working with Sammy JS

Debra Hodges

Debra Hodges

4y
1.3k
1
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)