Hi,
Can you share the logs of the AdministrationService?
lets have call, as we are facing this issue from long time.
[administration-service_07060b18-3]: [14:46:44 INF] Request origin http://localhost:4200 does not have permission to access the resource.
[administration-service_07060b18-3]: [14:46:44 INF] Executing endpoint 'Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi)'
[administration-service_07060b18-3]: [14:46:44 INF] Route matched with {area = "chat", action = "GetContacts", controller = "Contact", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[System.Collections.Generic.List
1[Volo.Chat.Users.ChatContactDto]] GetContactsAsync(Volo.Chat.Users.GetContactsInput) on controller Volo.Chat.Users.ContactController (Volo.Chat.HttpApi).
[administration-service_07060b18-3]: [14:46:44 INF] Executing action method Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi) - Validation state: Valid
[administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request GET https://localhost:44322/.well-known/openid-configuration
[administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request GET https://localhost:44322/.well-known/openid-configuration
[administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 6.7865ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 7.084ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request GET https://localhost:44322/.well-known/jwks
[administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request GET https://localhost:44322/.well-known/jwks
[administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 3.0377ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 3.2607ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request POST https://localhost:44322/connect/token
[administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request POST https://localhost:44322/connect/token
[administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 82.974ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 83.1962ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request GET https://localhost:44388/integration-api/identity/users/d6610804-b933-351e-8575-3a11105c13c2/role-names?api-version=1.0
[administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request GET https://localhost:44388/integration-api/identity/users/d6610804-b933-351e-8575-3a11105c13c2/role-names?api-version=1.0
[administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 20.1081ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 20.3072ms - 200
[administration-service_07060b18-3]: [14:46:44 INF] Executed action method Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 170.8234ms.
[administration-service_07060b18-3]: [14:46:44 INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List1[[Volo.Chat.Users.ChatContactDto, Volo.Chat.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. [administration-service_07060b18-3]: [14:46:44 INF] Executed action Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi) in 177.0692ms [administration-service_07060b18-3]: [14:46:44 INF] Executed endpoint 'Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi)' [administration-service_07060b18-3]: [14:46:44 INF] CORS policy execution failed. [administration-service_07060b18-3]: [14:46:44 INF] Request origin http://localhost:4200 does not have permission to access the resource. [administration-service_07060b18-3]: [14:46:44 INF] Executing endpoint 'Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi)' [administration-service_07060b18-3]: [14:46:44 INF] Route matched with {area = "chat", action = "GetConversation", controller = "Conversation", page = ""}. Executing controller action with signature System.Threading.Tasks.Task
1[Volo.Chat.Conversations.ChatConversationDto] GetConversationAsync(Volo.Chat.Conversations.GetConversationInput) on controller Volo.Chat.Conversations.ConversationController (Volo.Chat.HttpApi).
[administration-service_07060b18-3]: [14:46:44 INF] Executing action method Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi) - Validation state: Valid
[administration-service_07060b18-3]: [14:46:44 INF] Executed action method Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 103.5783ms.
[administration-service_07060b18-3]: [14:46:44 INF] Executing ObjectResult, writing value of type 'Volo.Chat.Conversations.ChatConversationDto'.
[administration-service_07060b18-3]: [14:46:44 INF] Executed action Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi) in 169.8128ms
[administration-service_07060b18-3]: [14:46:44 INF] Executed endpoint 'Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi)'
I have already added same im yarp file still getting same issue.
You can esily repoduce this issue: Create a new microservice project with angular, ef core, sql using ABP Suite 8.0.4 Add chat module in Administration Service.
LOG:
[web-gateway_97bfe0c2-f]: [11:45:11 INF] Executing endpoint 'Chat' [web-gateway_97bfe0c2-f]: [11:45:11 INF] Proxying to https://localhost:44367/api/chat/contact/total-unread-message-count HTTP/2 RequestVersionOrLower no-streaming [web-gateway_97bfe0c2-f]: [11:45:11 INF] CORS policy execution successful. [web-gateway_97bfe0c2-f]: [11:45:11 INF] CORS policy execution successful. [web-gateway_97bfe0c2-f]: [11:45:11 INF] Executing endpoint 'ChatSignalr' [web-gateway_97bfe0c2-f]: [11:45:11 INF] Proxying to https://localhost:44367/signalr-hubs/chat/negotiate?negotiateVersion=1 HTTP/2 RequestVersionOrLower no-streaming [web-gateway_97bfe0c2-f]: [11:45:11 INF] Received HTTP/2.0 response 404. [web-gateway_97bfe0c2-f]: [11:45:11 INF] Executed endpoint 'ChatSignalr' [web-gateway_97bfe0c2-f]: [11:45:11 INF] Received HTTP/2.0 response 200. [web-gateway_97bfe0c2-f]: [11:45:11 INF] Executed endpoint 'Chat'