CORS in Azure Function for Capacitor ios

Jay Ashara 1 Reputation point
2021-07-28T15:50:50.617+00:00

I am developing capacitor app using ionic where as per new iOS version it cannot allow to use http or https because it's reserved scheme in iOS. So when the app ran it starts with capacitor://localhost and when I tries to add in azure function CORS it won't allow me to add scheme other than http / https.

One possible work around is API Management (NOT 100% sure). But my question here is why can't we use default Azure Function CORS other than http or https?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,301 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2021-07-30T16:53:45.02+00:00

    @Jay Ashara CORS is more part of the security built into browers and compliant servers just require sending back the right headers. So you could always include the required headers in your response manually or even leverage function proxies to add them for you.

    You could also workaround this or even totally disable CORS though not recommended.


  2. Bhaskar Chowdary 1 Reputation point
    2022-04-26T06:34:26.413+00:00
    0 comments No comments