Skip to content

Commit fe14859

Browse files
committed
artall-1
1 parent c58f30e commit fe14859

2 files changed

Lines changed: 23 additions & 24 deletions

File tree

articles/api-management/enable-cors-power-platform.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Enable CORS policies for Azure API Management custom connector
2+
title: Enable CORS Policies for Azure API Management Custom Connector
33
description: How to enable CORS policies in Azure API Management and Power Platform to test and use a custom connector from Power Platform applications.
44
services: api-management
55
author: dlepow
@@ -16,16 +16,15 @@ ms.author: danlep
1616

1717
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.
1818

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:
2020

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
2423

2524
## Prerequisites
2625

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)
2928

3029
## Add CORS policy to API in API Management
3130

@@ -38,14 +37,14 @@ Follow these steps to configure the CORS policy in API Management.
3837
1. Add the following **Allowed origin**: `https://make.powerapps.com`.
3938
1. Select **Save**.
4039

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.
4342

4443
> [!NOTE]
4544
> 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.
4645
4746
> [!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.
4948
5049

5150
## 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
5756
1. Sign in to Power Apps or Power Automate.
5857
1. On the left pane, select **Data** > **Custom Connectors**.
5958
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.
6160
1. Select **3. Definition**.
6261
1. In **Policies**, select **+ New policy**. Select or enter the following policy details.
6362

@@ -79,5 +78,5 @@ For details about editing settings of a custom connector, see [Create a custom c
7978

8079
## Related content
8180

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/)

articles/api-management/export-api-power-platform.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
services: api-management
55
author: dlepow
66

@@ -15,14 +15,15 @@ ms.custom: engagement-fy23
1515

1616
[!INCLUDE [api-management-availability-all-tiers](../../includes/api-management-availability-all-tiers.md)]
1717

18-
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.
1919

2020
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+
2122
## Prerequisites
2223

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)
2627

2728
## Create a custom connector to an API
2829

@@ -32,14 +33,14 @@ This article walks through the steps in the Azure portal to create a Power Platf
3233
1. In the **Create a connector** window, do the following:
3334
1. Select an API to publish to the Power Platform.
3435
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.
3637
1. Optionally, if the API doesn't already require a subscription, select **Create subscription key connection parameter**.
3738
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**.
3839
1. Select **Create**.
3940

4041
:::image type="content" source="media/export-api-power-platform/create-custom-connector.png" alt-text="Create custom connector to API in API Management":::
4142

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**.
4344

4445
:::image type="content" source="media/export-api-power-platform/custom-connector-power-app.png" alt-text="Custom connector in Power Platform":::
4546

@@ -63,11 +64,10 @@ From API Management, you can update a connector to target a different API or Pow
6364
1. Select **Update a connector**.
6465
1. Select the API you want to update the connector for, update settings as needed, and select **Update**.
6566

66-
6767
## Related content
6868

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)
7272

7373

0 commit comments

Comments
 (0)