{ "App": { "SelfUrl": "https://medistat.co.za/MedistatApi", "AngularUrl": "https://medistat.co.za/MedistatWeb", "CorsOrigins": "https://.Medistat.com,https://medistat.co.za/MedistatWeb", "RedirectAllowedUrls": "https://medistat.co.za/MedistatWeb" }, "Redis": { "Configuration": "127.0.0.1" }, "ConnectionStrings": { "Default": "Server=MedistatDB;Database=MedistatABP;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000", "Discovery": "Server=MedistatDB;Database=MedistatABPDiscovery;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000", "Edi": "Server=MedistatDB;Database=MedistatABPEdi;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000", "Msv": "Server=MedistatDB;Database=MedistatABPMsv;Trusted_Connection=false;User ID=MedistatUser;Password=L#vaH4buZ25WjB9;Connect Timeout=1000" }, "AuthServer": { "Authority": "https://medistat.co.za/MedistatApi", "RequireHttpsMetadata": "false", "SwaggerClientId": "Medistat_Swagger", "SwaggerClientSecret": "1q2w3e" }, "StringEncryption": { "DefaultPassPhrase": "fsfXFsKSwfobK4Fr" },
Hi
Thanks very much for this, not sure where that extra bit of configuration came from. The fix you suggested has solved that problem. But I'm still not able to use the API correctly in swagger. It seems its a CORS issue. I've pasted a snippet from the log file as well as the configuration file. I'm not sure what I'm doing wrong because as you can see in the configuration ive configured CORS. Is there another place that this also needs to be configured
2022-05-19 12:21:41.001 +02:00 [INF] CORS policy execution failed. 2022-05-19 12:21:41.001 +02:00 [INF] Request origin http://medistat.co.za does not have permission to access the resource. 2022-05-19 12:21:41.008 +02:00 [INF] No CORS policy found for the specified request. 2022-05-19 12:21:41.009 +02:00 [INF] Executing endpoint 'Volo.Abp.Account.Public.Web.Areas.Account.Controllers.AccountController.Login (Volo.Abp.Account.Pro.Public.Web)' 2022-05-19 12:21:41.027 +02:00 [INF] Route matched with {controller = "Login", area = "account", action = "Login", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Account.Public.Web.Areas.Account.Controllers.Models.AbpLoginResult] Login(Volo.Abp.Account.Public.Web.Areas.Account.Controllers.Models.UserLoginInfo) on controller Volo.Abp.Account.Public.Web.Areas.Account.Controllers.AccountController (Volo.Abp.Account.Pro.Public.Web). 2022-05-19 12:21:41.635 +02:00 [INF] Try to use LDAP for external authentication 2022-05-19 12:21:41.704 +02:00 [WRN] Ldap login feature is not enabled!
"App": { "SelfUrl": "https://medistat.co.za/MedistatApi", "AngularUrl": "https://medistat.co.za/MedistatWeb", "CorsOrigins": "https://*.Medistat.com,https://medistat.co.za/MedistatWeb,http://medistat.co.za/MedistatWeb,https://localhost:4200", "RedirectAllowedUrls": "https://localhost:4200" },
Yes I see that, I'm allowing both http and https in the config. I'm not sure why its making the request in http though because the site is deployed and configured in IIS to use https
Yes I have tried a few different combinations, I have no idea why its making the request as an http instead of an https "App": { "SelfUrl": "https://medistat.co.za/MedistatApi", "AngularUrl": "https://medistat.co.za/MedistatWeb", "CorsOrigins": "https://*.Medistat.com,https://medistat.co.za/MedistatWeb,http://medistat.co.za/MedistatWeb,http://medistat.co.za,https://medistat.co.za,https://localhost:4200", "RedirectAllowedUrls": "https://localhost:4200" },