I am trying to enable secure communication for my .NET core Api project. I did this by checking Use SSL checkbox after right clicking the project and clicking on the properties tab.
Below is my launchsettings.json file
{
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "http://localhost:31200/health",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ISRMServices.Auth": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:31205/"
}
},
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:31200/",
"sslPort": 44399
}
}
}
Now when i am trying to run my application using IIS Express, on the browser address bar i see 2 URL’s.. https://localhost:44399/https://localhost:31200/health
Instead i would like it to be only https://localhost:44399 or https://localhost:44399/swagger
How do i achieve this ?