Search code examples
ios.netajaxcors

Should I have to enable CORS for iOS client?


I have API application which was built in .net API 2. Now I want to use this API service from iOS app. So should I have to enable CORS for iOS app to use my API service?


Solution

  • If your app is not a browser-based client then no you should not need to enable CORS.

    CORS rules only apply to ajax requests made from a browser.