RESOLVED: CORS issue on ionic Mobile App ios

Problem:   I was working on a project in which I was developing an ionic application which needed to access a Website URL hosted on Azure App Service. The app was unable to connect and was throwing CORS issue. When I debugged using xcode, I found that the request is being made by the url capacitor://localhost and when I tried adding the same in Azure App Service, this was not allowed: After doing some research, I found the solution here: Solution: I used azure cli to add the cors url. For this: In case, you are not having azure cli, download it here: Run command: az login Run the following command to add url:  az webapp cors add --allowed-origins capacitor://localhost --name MyAppService --resource-group MyResourceGroup Happy Coding.

About Me

I am Co-founder and Head of Engineering at with 11+ years of experience in web applications and custom software development with the highest degree of quality and consistency.

I have worked in Telecom, Insurance and Medical Industries and have worked with Indian as well as US and UK based clients. Some of the clients I have worked with include British Petroleum, Cablevision, Word & Brown and Dignity Health (Common Spirit Health).

I have substantial experience in collaborating and working with geographically dispersed Teams to delivery high quality, maintainable and reliable business solutions to our clients.

Out of work, I like writing poetry in my native language in Hindi/Punjabi. I am a happy son, husband and father.

Also, I am an open teacher and speaker and organize meetups.

Here are the technologies, I have been working on:

·       Frontend Technologies: HTML, JavaScript, CSS3, jQuery, Angular, Angular 2+, Knockout, Ionic, TypeScript, NodeJS
·       Backend Technologies: C#, ASP.Net MVC, ASP.Net Web API, php, NodeJS
·       Tools and Frameworks:
o   IDE: Visual Studio, VS Code, Eclipse
o   Project Management: VSTS, TFS, GitHub, Gitlab, Bitbucket
o   Database & Reporting Tools: SSMS, MySQL Workbench, phpMyAdmin, SSRS
o   Rest clients: Swagger, Postman, Fiddler, Soap UI
o   CMS and Ecommerce Customization: WordPress, Magento, Woocommerce, OpenCart, SharePoint
o   Hosting: Linux Hosting, IIS Hosting, Microsoft Azure App Services.
o   Cloud: Microsoft Azure
·       Certifications and Achievements:
o   MCSD App Builder
o   Infosys Certified Software Engineering Professional

Social Profiles:

  1. LinkedIn
  2. LinkedIn
  3. GitHub