You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/enable-cors-power-platform.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Enable CORS policies for Azure API Management custom connector
2
+
title: Enable CORS Policies for Azure API Management Custom Connector
3
3
description: How to enable CORS policies in Azure API Management and Power Platform to test and use a custom connector from Power Platform applications.
4
4
services: api-management
5
5
author: dlepow
@@ -16,16 +16,15 @@ ms.author: danlep
16
16
17
17
Cross-origin resource sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. Customers can add a [CORS policy](cors-policy.md) to their web APIs in Azure API Management, which adds cross-origin resource sharing support to an operation or an API to allow cross-domain calls from browser-based clients.
18
18
19
-
If you've exported an API from API Management as a [custom connector](export-api-power-platform.md) in the Power Platform and want to use browser-based clients including Power Apps or Power Automate to call the API, you need to configure your API to explicitly enable cross-origin requests from Power Platform applications. This article shows you how to configure the following two necessary policy settings:
19
+
If you export an API from API Management as a [custom connector](export-api-power-platform.md) in the Power Platform and want to use browser-based clients including Power Apps or Power Automate to call the API, you need to configure your API to explicitly enable cross-origin requests from Power Platform applications. This article shows you how to configure the following two necessary policy settings:
20
20
21
-
* Add a CORS policy to your API
22
-
23
-
* Add a policy to your custom connector that sets an Origin header on HTTP requests
21
+
- Add a CORS policy to your API
22
+
- Add a policy to your custom connector that sets an Origin header on HTTP requests
24
23
25
24
## Prerequisites
26
25
27
-
+ Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
28
-
+ Export an API from your API Management instance to a Power Platform environment as a [custom connector](export-api-power-platform.md)
26
+
- Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
27
+
- Export an API from your API Management instance to a Power Platform environment as a [custom connector](export-api-power-platform.md)
29
28
30
29
## Add CORS policy to API in API Management
31
30
@@ -38,14 +37,14 @@ Follow these steps to configure the CORS policy in API Management.
38
37
1. Add the following **Allowed origin**: `https://make.powerapps.com`.
39
38
1. Select **Save**.
40
39
41
-
* For more information about configuring a policy, see [Set or edit policies](set-edit-policies.md).
42
-
* For details about the CORS policy, see the [cors](cors-policy.md) policy reference.
40
+
- For more information about configuring a policy, see [Set or edit policies](set-edit-policies.md).
41
+
- For details about the CORS policy, see the [cors](cors-policy.md) policy reference.
43
42
44
43
> [!NOTE]
45
44
> If you already have an existing CORS policy at the service (all APIs) level to enable the test console of the developer portal, you can add the `https://make.powerapps.com` origin to that policy instead of configuring a separate policy for the API or operation.
46
45
47
46
> [!NOTE]
48
-
> Depending on how the custom connector gets used in Power Platform applications, you might need to configure additional origins in the CORS policy. If you experience CORS problems when running Power Platform applications, use developer tools in your browser, tracing in API Management, or Application Insights to investigate the issues.
47
+
> Depending on how the custom connector gets used in Power Platform applications, you might need to configure more origins in the CORS policy. If you experience CORS problems when running Power Platform applications, use developer tools in your browser, tracing in API Management, or Application Insights to investigate the issues.
49
48
50
49
51
50
## Add policy to custom connector to set Origin header
@@ -57,7 +56,7 @@ For details about editing settings of a custom connector, see [Create a custom c
57
56
1. Sign in to Power Apps or Power Automate.
58
57
1. On the left pane, select **Data** > **Custom Connectors**.
59
58
1. Select your connector from the list of custom connectors.
60
-
1.Select the pencil (Edit) icon to edit the custom connector.
59
+
1.To edit the custom connector, select the pencil (Edit) icon.
61
60
1. Select **3. Definition**.
62
61
1. In **Policies**, select **+ New policy**. Select or enter the following policy details.
63
62
@@ -79,5 +78,5 @@ For details about editing settings of a custom connector, see [Create a custom c
79
78
80
79
## Related content
81
80
82
-
*[Learn more about the Power Platform](https://powerplatform.microsoft.com/)
83
-
*[Learn more about creating and using custom connectors](/connectors/custom-connectors/)
81
+
-[Learn more about the Power Platform](https://powerplatform.microsoft.com/)
82
+
-[Learn more about creating and using custom connectors](/connectors/custom-connectors/)
Copy file name to clipboardExpand all lines: articles/api-management/export-api-power-platform.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Export APIs from Azure API Management to Microsoft Power Platform | Microsoft Docs
3
-
description: Learn how to export an API from API Management as a custom connector to Power Apps and Power Automate in the Microsoft Power Platform.
3
+
description: Learn how to export an API from API Management to the Microsoft Power Platform Copilot Studio, Power Apps, and Power Automate as a custom connector.
Citizen developers using the Microsoft [Power Platform](https://powerplatform.microsoft.com) often need to reach the business capabilities that are developed by professional developers and deployed in Azure. [Azure API Management](https://aka.ms/apimrocks) enables professional developers to publish their backend service as APIs, and easily export these APIs to the Power Platform ([Copilot Studio](/microsoft-copilot-studio/fundamentals-what-is-copilot-studio), [Power Apps](/powerapps/powerapps-overview) and [Power Automate](/power-automate/getting-started)) as custom connectors for discovery and consumption by citizen developers.
18
+
Citizen developers using the Microsoft [Power Platform](https://powerplatform.microsoft.com) often need to reach the business capabilities developed and deployed by professional developers in Azure. [Azure API Management](https://aka.ms/apimrocks) enables professional developers to publish their backend service as APIs, and easily export these APIs to the Power Platform ([Copilot Studio](/microsoft-copilot-studio/fundamentals-what-is-copilot-studio), [Power Apps](/powerapps/powerapps-overview), and [Power Automate](/power-automate/getting-started)) as custom connectors for discovery and consumption by citizen developers.
19
19
20
20
This article walks through the steps in the Azure portal to create a Power Platform [custom connector](/connectors/custom-connectors/) to an API in API Management. With this capability, citizen developers can use the Power Platform to create and distribute apps that are based on internal and external APIs managed by API Management.
21
+
21
22
## Prerequisites
22
23
23
-
+ Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
24
-
+ Make sure there's an API in your API Management instance that you'd like to export to the Power Platform
25
-
+ Make sure you have a Power Apps or Power Automate [environment](/powerapps/powerapps-overview#power-apps-for-admins)
24
+
- Complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
25
+
- Make sure there's an API in your API Management instance that you'd like to export to the Power Platform
26
+
- Make sure you have a Power Apps or Power Automate [environment](/powerapps/powerapps-overview#power-apps-for-admins)
26
27
27
28
## Create a custom connector to an API
28
29
@@ -32,14 +33,14 @@ This article walks through the steps in the Azure portal to create a Power Platf
32
33
1. In the **Create a connector** window, do the following:
33
34
1. Select an API to publish to the Power Platform.
34
35
1. Select a Power Platform environment to publish the API to.
35
-
1. Enter a display name, which will be used as the name of the custom connector.
36
+
1. Enter a display name, which is used as the name of the custom connector.
36
37
1. Optionally, if the API doesn't already require a subscription, select **Create subscription key connection parameter**.
37
38
1. Optionally, if the API is [protected by an OAuth 2.0 server](api-management-howto-protect-backend-with-aad.md), provide details including **Client ID**, **Client secret**, **Authorization URL**, **Token URL**, and **Refresh URL**.
38
39
1. Select **Create**.
39
40
40
41
:::image type="content" source="media/export-api-power-platform/create-custom-connector.png" alt-text="Create custom connector to API in API Management":::
41
42
42
-
Once the connector is created, navigate to your [Power Apps](https://make.powerapps.com) or [Power Automate](https://make.powerautomate.com) environment. You'll see the API listed under **Data > Custom Connectors**.
43
+
Once the connector is created, navigate to your [Power Apps](https://make.powerapps.com) or [Power Automate](https://make.powerautomate.com) environment. Your API is listed under **Data > Custom connectors**.
43
44
44
45
:::image type="content" source="media/export-api-power-platform/custom-connector-power-app.png" alt-text="Custom connector in Power Platform":::
45
46
@@ -63,11 +64,10 @@ From API Management, you can update a connector to target a different API or Pow
63
64
1. Select **Update a connector**.
64
65
1. Select the API you want to update the connector for, update settings as needed, and select **Update**.
65
66
66
-
67
67
## Related content
68
68
69
-
*[Learn more about the Power Platform](https://powerplatform.microsoft.com/) and [licensing](/power-platform/admin/pricing-billing-skus)
70
-
*[Learn more about creating and using custom connectors](/connectors/custom-connectors/)
71
-
*[Learn common tasks in API Management by following the tutorials](./import-and-publish.md)
69
+
-[Learn more about the Power Platform](https://powerplatform.microsoft.com/) and [licensing](/power-platform/admin/pricing-billing-skus)
70
+
-[Learn more about creating and using custom connectors](/connectors/custom-connectors/)
71
+
-[Learn common tasks in API Management by following the tutorials](./import-and-publish.md)
0 commit comments