angular - CORS error on only one .Net Core 2.0 Web API controller -
i have several .net core 2.0 wep api controllers work fine, 1 gives client invalid cross origin error though cors initialized globally. i've looked @ controller on , on , see no difference between , others work fine. client angular4 app , information provides request isn't allowed because of cors violation.
i kept thinking bug in client code or bug in .net core 2.0 because it's new. reason never tried typing actual url browser on web api server, had done on have seen there exception. come find out, 1 of poco data model classes had field spelled wrong. advice don't depend on client application when troubleshooting errors web api.
Comments
Post a Comment