I have a C# Web API that is using Auth0 for authorization, and while I can call to private routes when I run my front and back end applications locally, after I upload it, I get a 401 error. Why is this happening? The only difference between local and uploaded is that I have my web page use different environment variables when I build the project, with “appUri” and “appUri” pointing to my web domain. My back end app uses the same Auth0 settings for domain and audience.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Angular -> C# authorization failure | 7 | 1086 | February 24, 2023 | |
401 Unauthorized when calling our API if the front-end is using Auth0 custom domain | 5 | 2122 | December 7, 2023 | |
Authenticating a WEBAPI using auth0 | 12 | 5718 | April 3, 2018 | |
Access Token Passed from Web App to .NET API Not Working | 5 | 2030 | May 14, 2022 | |
.NET Core Angular 401 when calling API | 3 | 9158 | October 28, 2021 |