Dear support team,
I host Angular into IIS: https://dmsuat.hanwhalife.com.vn:501/HLVDMS/ When i click Login, redirect to service like this But when i login website redirect to localhost:4200 I have update appsettings.json like this I don't understand why service redirect to localhost:4200 Please show me how to fix it
- ABP Framework version: v4.2.2
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:
7 Answer(s)
-
0
Hello,
Could you please share your
environment.ts
andenvironment.prod.ts
files omitting confidential information? -
0
-
0
Could you please check the table
IdentityServerClientRedirectUris
in your prod database?Also, I've noticed that your
environment.ts
looks like yourenvironment.prod.ts
.environment.ts
is used when running your application withng serve
.environment.prod.ts
is used when you runng build --prod
. Having the same entries for both could cause some confusion. -
0
Could you please check the table
IdentityServerClientRedirectUris
in your prod database?Also, I've noticed that your
environment.ts
looks like yourenvironment.prod.ts
.environment.ts
is used when running your application withng serve
.environment.prod.ts
is used when you runng build --prod
. Having the same entries for both could cause some confusion.Thanks bunyamin,
I updated database and i have a new error when login. Please show me how to fix it
-
0
It seems that you encountered a CORS error. Please check the
IdentityServerClientCorsOrigins
table and make sure thatdmsaut.hanwhalife.com.vn:501
is within allowed CORS origins. -
0
It seems that you encountered a CORS error. Please check the
IdentityServerClientCorsOrigins
table and make sure thatdmsaut.hanwhalife.com.vn:501
is within allowed CORS origins.Dear bunyamin,
Thanks you for your answer quickly. I have already update IdentityServerClientCorsOrigins table but the error still in here
Where else can i check?
-
0