cors in nginx in signalr

mc 3,701 Reputation points
2021-09-29T08:27:41.687+00:00

in asp.net core signalr there is a cors can can not connect to the server when it is in nginx with javascript.

but it will be ok in debug in my computer.

is it something I have to config in nginx or centos?

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,212 questions
{count} votes