Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi

EnableCors attribute missing

leechen opened this issue · 5 comments

Following this direction: 5. Also in the ToGoAPI project, open the file Controllers/ToGoListController.cs. In the [EnableCors...] attribute, enter the location of the To Do SPA client. By default it is https://localhost:44326. Make sure to omit the trailing slash.

There is actually no EnableCors attribute in ToGoListController.cs

To add, the nuget package is not even in there, you have to add it

Install-Package Microsoft.AspNet.WebApi.Cors

I think you can ignore this step. I was able to call the ToGoList.

same issue as this #11

It doesn't need, because int Startup.cs TO go api, there is app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll);

Allow ALL

Closing this as we are archiving this sample. Please check out the new sample at ms-identity-javascript-angular-spa-aspnetcore-webapi.