Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Getting CORS Error in Azure #10371


User avatar
0
defraudit created

I am using product version 10.3 product type Angular, .net 5

My Appsetting in Host Project lookes like this.

{
    "ConnectionStrings": {
        "Default": "..."
    },
    "App": {
        "ServerRootAddress": "https://evalapp.azurewebsites.net/",
        "ClientRootAddress": "https://evaltechnology.com/",
        "CorsOrigins": "http://*.mycompany.com,http://localhost:4200,http://localhost:9876,https://*.azurewebsites.net,http://*.azurewebsites.net,http://*.evaltechnology.com,https://*.evaltechnology.com"
    }
}

Not sure why i am getting cors error


1 Answer(s)
  • User Avatar
    0
    defraudit created

    I Got this resolved I had to give absolute url in CorsOrigins