• 1397/11/03

مشکل allow Origin در webapi :

سلام 

من یک Web Api دارم که با signalr اطلاعات به کلایینت میده ولی این پیغام سمت کلاینت ارسال میشه : 

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

 

وقتی خط withOrgin را از کامنت خارج میکنم مشکل حل میشه ولی باید همه کلاینت ها متصل باشند

اگر ممکن است راهنمایی بفرمایید

 

 

  • 1397/11/03
  • ساعت 16:00

سلام 

باید cors تعریف کنید 

سرچ کنید مفصل است 


logo-enamadlogo-samandehi