What is your product version - v10.1.0 What is your product type (Angular or MVC) angular
- What is product framework type (.net framework or .net core)?
i want to integrate chat in my angular project using SignalR but getting error in building hub connection Access to XMLHttpRequest at 'http://udaifit.sfittest.com/signalr/negotiate?enc_auth_token=wNYmO41%2F48SHNstaLVXxHCCre29BZQl1NhC6NM3R3rwZiL572M4gBaHf6sHsTGZf6uWgl%2FhVN2zMpb6FUEfu%2FOMt5sMHKoigz59HOdLCzZS4DuZgZ%2BM6DEcJ4CnbqkSg6njpx1AWKJdpLUKMqCD2BmLFzXGTzpV%2B8TQtoRePzN6X2jWotjnL9Eu%2BRxdo1ch%2F%2Bd06C%2B98UrDwmyhXKIDVWSPDjGuw6a5wi6DEg5Pw4gHkrrE0LSc9ChFfwIpIOoRryv2FVmOCWwzvjPcORT%2BEX6mG%2FNlgo%2BfWEJ%2BIJqItBAWysZOS%2B%2FRr2Ddj%2BubH%2B9%2FBUXzDW0gKVdnvvCEnOZjsCb2F2TJ%2FDqMx1ICl6IctYGJPgRduOzuY%2Fb12CFDRLkTJpNvwNw13gj05SlwWJnFfYw%2FA9D5zhyevcaU2mjEWUBlSkBZc%2BtrNepyYfGUcNkAVvXnutsSJw4aPecgO1zvvKjUFvLQVDD8mht9xcTdjlktV2A5R8enr%2BzviVLeo2x00Ka7S42pg0hleWIjGSemaKqlaCGPLqAUhkLh0qPzPZAMSfZZ76l3pW6OAqVHRgVlLmLC%2BbB52Kb0FNb7f%2FZgarSEAN2frbApfU7IPD0nu%2FFa%2BonjSxJysqfHCz3rikTN6lbPrzFkKs9Ls2srkQ8kxFx25l1w%2Bsm0etw3p6gRWaX7SqBxbOqfQxljdGsUlCgI9OeQsQMspITDra37BM%2B4nbGDEhG%2FGJY8%2Fd97v3qESNsCtE33%2FG9bkdjcU937ONEq3H510MsMBcj%2BeZS7rttE0BS5SaNbZit3rMOPk67A2uYB7swygPcXCn4hHfF39NjNKm4yuN1sc0PJAWsQlKVrFGGY3JYlDchYEz3UrFenGhzk%3D&negotiateVersion=1' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
3 Answer(s)
-
0
Hi @kansoftware
By default MVC project doesn't use CORS settings. You can take a look at https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L15 and its usage in Host project and add same configuration and code block to your MVC app. After all, your Angualr app can access your MVC app.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
@ismcagdas unable to open doc
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
Add your GitHub user on https://aspnetzero.com/LicenseManagement. Then, you can open this link.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)