Skip to main content

Notifications

Community site session details

Community site session details

Session Id : lu5AHzvPdZ4Ueb8gJFQRRj
Power Apps - Building Power Apps
Unanswered

Issues with integrating PowerApps with Custom Connector in Studio Mode

Like (0) ShareShare
ReportReport
Posted on 23 May 2022 13:56:24 by 139
Hello Team,
 
We are trying to connect to the Azure APIM instance through PowerApps. We were facing CORS issues in testing the custom connector response as well as hitting the same API through the APP URL in published mode.

 

We were able to resolve the above issues by referring to a couple of articles (https://powerusers.microsoft.com/t5/Connector-Development/Property-quot-quot-type-mismatch-Expected-...
) by adding https://flow.microsoft.com and https://apps.powerapps.com. URIs to the CORS policy.

 

However, we are still having issues with loading the data in PowerApps Studio mode. We tried adding the below URLs to the CORS policy after debugging in the network tab without any luck.

The error that we are seeing in the studio mode has been attached. 

It would be great if you could share your insights into this issue.

Thanks,
Srinivas
  • Community Power Platform Member Profile Picture
    on 21 Mar 2023 at 12:41:41
    Re: Issues with integrating PowerApps with Custom Connector in Studio Mode

    Hello Srinivas,

     

    I was facing the same issue and was able to work around the issue by allowing all origins in the CORS policy. Like so:

     <cors>
     <allowed-origins>
     <origin>*</origin>
     </allowed-origins>
     <allowed-methods preflight-result-max-age="300">
     <method>*</method>
     </allowed-methods>
     <allowed-headers>
     <header>*</header>
     </allowed-headers>
     <expose-headers>
     <header>*</header>
     </expose-headers>
     </cors>

     

    The call works with this configuration, but is obviously not secure and cannot be used in production. 

    Were you able to find the correct URLs to be allowed for the connection to work?

     

    Thanks,

    Shridhar

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard