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 | 6 | 1190 | February 10, 2023 | |
| Getting Authorization has been denied for this request on Azure but works locally | 3 | 19955 | October 19, 2017 | |
| Why can I call my WebAPI successfully with localhost but not my live https site? | 3 | 7792 | February 1, 2018 | |
| 401 Unauthorized when calling our API if the front-end is using Auth0 custom domain | 5 | 2676 | December 7, 2023 | |
| 401 Unauthorized Error from Auth0 | 2 | 3464 | November 2, 2020 |