Click here to Skip to main content
15,882,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I have initially an API project which works perfectly in Azure Server (.NetCore 2.2), but later when I migrate it to (.NetCore 3.1) it doesn't work.

This is API Project so my swagger is opened but when I am trying hit a (GET) request with authorize API key it is not working. In local it works perfectly with authorize API key, but after deploy in Azure it wont work expect showing swagger.

When I hit get request from swagger with authorize API key, it is showing 403 status code.

What I have tried:

I have tried many things but unable to find out the issue as I am unable to debug on server end, how can I achieve this
Posted
Updated 12-Feb-20 22:32pm
Comments
Richard Deeming 13-Feb-20 8:35am    
Are you using the same version of the runtime locally that's installed on your Azure server?

Have you tried the troubleshooting steps outlined in the documentation?
Troubleshoot ASP.NET Core on Azure App Service and IIS | Microsoft Docs[^]

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900