Part 2 of annoying app dev gotchas – Making api requests

Cors is your best friend and worse enemy.

  1. Enable cors in your backend:
    in Startup.MobileApp.Cs:

  2. Add EnableCors attribute to your controller:

  3. Sample javascript for making request: