Web Service API Blazor CORS Error

Error: Get the following error when trying to access api call from external sites. Access to fetch at xxxx from origin xxxx has been blocked by CORS policy: 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... » read more

The type or namespace name ‘ServiceContractAttributeAttribute’ does not exist in the namespace ‘System.ServiceModel’

Error: After generating a connected service from WCF, you get the following error during compile… The type or namespace name ‘ServiceContractAttributeAttribute’ does not exist in the namespace ‘System.ServiceModel’ Fix: Add the following from NuGet… System.ServiceModel.Primitives System.ServiceModel.Http Sources: https://stackoverflow.com/questions/45545013/system-servicemodel-not-found-in-net-core-project

Blazor client-side and WCF

Core does not support WCF very well instead of not at all. Especially in terms of authentication and security, such as the service created by using WS* binding.  I suggest you re-construct your server project with BasicHttpBinding or using Asp.net WebAPI to create the backend service. WCF is not supported in .NET Core out of... » read more

WCF vs Web API

What is WCF? WCF stands for Windows Communication Foundation. It is used to create a distributed and interoperable Applications. WCF is an effective platform for developing service-oriented applications. It allows developers to create secure, reliable, and high profile development solutions which can be integrated across platforms and interoperate with existing investments. What is Web API?... » read more