Open Closed

localhost angular web app is not working #490


User avatar
0
sammy@projile.com created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.1.2

  • UI type: Angular

  • Tiered (MVC) or Identity Server Seperated (Angular): yes

  • Exception message and stack trace: As per below

  • Steps to reproduce the issue: as per below

            We have setup the identity server, api and angular web app in azure vm. Azure VM has self-signed certificate. This setup is running fine. Now we are trying to connect the angular web app from localhost with vm hosted identity server and api. We are getting following error:
    

Localhost web application error:

Identity server app settings: { "App": { "SelfUrl": "https://xxx.yyy.cloudapp.azure.com:44388", "CorsOrigins": "https://xxx.yyy.cloudapp.azure.com,http://xxx.yyy.cloudapp.azure.com:4200,http://localhost:4200" },

"ConnectionStrings": { "DB Connection string" }, "Settings": { "Volo.Abp.LeptonTheme.Style": "Style6", "Abp.Mailing.Smtp.Host": "127.0.0.1", "Abp.Mailing.Smtp.Port": "25", "Abp.Mailing.Smtp.UserName": "", "Abp.Mailing.Smtp.Password": "", "Abp.Mailing.Smtp.Domain": "", "Abp.Mailing.Smtp.EnableSsl": "false", "Abp.Mailing.Smtp.UseDefaultCredentials": "true", "Abp.Mailing.DefaultFromAddress": "noreply@abp.io", "Abp.Mailing.DefaultFromDisplayName": "ABP application" }, "Redis": { "Configuration": "127.0.0.1" }, "AbpLicenseCode": "" }

API settings:

{ "App": { "SelfUrl": "https://xxx.yyy.cloudapp.azure.com:44346", "ClientUrl": "http://xxx.yyy.cloudapp.azure.com:4200", "CorsOrigins": "https://xxx.yyy.cloudapp.azure.com:44388,http://xxx.yyy.cloudapp.azure.com:4200,http://localhost:4200" },

"ConnectionStrings": { "Default": "DB connection string" }, "Redis": { "Configuration": "127.0.0.1" }, "AuthServer": { "Authority": "https://xxx.yyy.cloudapp.azure.com:44388" }, "Settings": { "Volo.Abp.LeptonTheme.Style": "Style6", "Abp.Mailing.Smtp.Host": "127.0.0.1", "Abp.Mailing.Smtp.Port": "25", "Abp.Mailing.Smtp.UserName": "", "Abp.Mailing.Smtp.Password": "", "Abp.Mailing.Smtp.Domain": "", "Abp.Mailing.Smtp.EnableSsl": "false", "Abp.Mailing.Smtp.UseDefaultCredentials": "true", "Abp.Mailing.DefaultFromAddress": "noreply@abp.io", "Abp.Mailing.DefaultFromDisplayName": "ABP application" }, "AbpLicenseCode": "" }


1 Answer(s)
Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38