I have implemented Web API using .net core 8.0 . I already have implemented CORS to allow all origin for time being. API is working fine on localhost. but when I publish API on Azure,it is giving me CORS error.
I have refer below blogs
https://learn.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-8.0
2
Answers
need to configure cors policy for you urls in program.cs
also configure middle ware
more you can find here
You need to allow your portal url in Program.CS file by adding CORS policy.