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 | |
---|---|---|---|---|
Getting Authorization has been denied for this request on Azure but works locally | 4 | 19817 | March 2, 2018 | |
Why can I call my WebAPI successfully with localhost but not my live https site? | 4 | 7703 | August 27, 2019 | |
WepAPI v2 running in local host trying to register test user | 1 | 4287 | March 2, 2018 | |
.NET API cannot read token after uploading | 2 | 3835 | December 24, 2018 | |
Simple API Test Access using Auth0 Sample code, Auth0 Authentication API Debugger, and Postman | 2 | 4885 | March 2, 2018 |