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
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
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
6
6
7
7
ms.service: azure-api-management
8
8
ms.topic: how-to
9
-
ms.date: 03/24/2023
9
+
ms.date: 10/07/2025
10
10
ms.author: danlep
11
11
12
12
---
@@ -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
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
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)
This article provides the steps for deploying self-hosted gateway component of Azure API Management to [Azure Kubernetes Service](https://azure.microsoft.com/services/kubernetes-service/). For deploying self-hosted gateway to a Kubernetes cluster, see the how-to article for deployment by using a [deployment YAML file](how-to-deploy-self-hosted-gateway-kubernetes.md) or [with Helm](how-to-deploy-self-hosted-gateway-kubernetes-helm.md).
15
+
This article provides the steps for deploying self-hosted gateway component of Azure API Management to [Azure Kubernetes Service (AKS)](https://azure.microsoft.com/services/kubernetes-service/). For deploying self-hosted gateway to a Kubernetes cluster, see the how-to article for deployment by using a [deployment YAML file](how-to-deploy-self-hosted-gateway-kubernetes.md) or with [Helm](how-to-deploy-self-hosted-gateway-kubernetes-helm.md).
16
16
17
17
> [!NOTE]
18
18
> You can also deploy self-hosted gateway to an [Azure Arc-enabled Kubernetes cluster](how-to-deploy-self-hosted-gateway-azure-arc.md) as a [cluster extension](/azure/azure-arc/kubernetes/extensions).
@@ -26,16 +26,16 @@ This article provides the steps for deploying self-hosted gateway component of A
26
26
## Deploy the self-hosted gateway to AKS
27
27
28
28
1. Select **Gateways** from under **Deployment and infrastructure**.
29
-
2. Select the self-hosted gateway resource you intend to deploy.
30
-
3. Select **Deployment**.
31
-
4. A new token in the **Token** text box was autogenerated for you using the default **Expiry** and **Secret Key** values. Adjust either or both if desired and select **Generate** to create a new token.
32
-
5. Make sure **Kubernetes** is selected under **Deployment scripts**.
33
-
6. Select **\<gateway-name\>.yml** file link next to **Deployment** to download the file.
34
-
7. Adjust the `config.service.endpoint`, port mappings, and container name in the .yml file as needed.
35
-
8. Depending on your scenario, you might need to change the [service type](/azure/aks/concepts-network-services).
36
-
* The default value is `LoadBalancer`, which is the external load balancer.
37
-
* You can use the [internal load balancer](/azure/aks/internal-lb) to restrict the access to the self-hosted gateway to only internal users.
38
-
* The sample below uses `NodePort`.
29
+
1. Select the self-hosted gateway resource you intend to deploy.
30
+
1. Select **Deployment**.
31
+
1. A new token in the **Token** text box was autogenerated for you using the default **Expiry** and **Secret Key** values. Adjust either or both if desired and select **Generate** to create a new token.
32
+
1. Make sure **Kubernetes** is selected under **Deployment scripts**.
33
+
1. Select the**\<gateway-name\>.yml** file link next to **Deployment** to download the file.
34
+
1. Adjust the `config.service.endpoint`, port mappings, and container name in the .yml file as needed.
35
+
1. Depending on your scenario, you might need to change the [service type](/azure/aks/concepts-network-services).
36
+
- The default value is `LoadBalancer`, which is the external load balancer.
37
+
- You can use the [internal load balancer](/azure/aks/internal-lb) to restrict the access to the self-hosted gateway to only internal users.
38
+
- The following sample uses `NodePort`.
39
39
1. Select the **copy** icon located at the right end of the **Deploy** text box to save the `kubectl` command to clipboard.
40
40
1. Paste the command to the terminal (or command) window. The command expects the downloaded environment file to be present in the current directory.
41
41
@@ -44,31 +44,33 @@ This article provides the steps for deploying self-hosted gateway component of A
44
44
```
45
45
46
46
1. Execute the command. The command instructs your AKS cluster to:
47
-
* Run the container, using self-hosted gateway's image downloaded from the Microsoft Container Registry.
48
-
* Configure the container to expose HTTP (8080) and HTTPS (443) ports.
49
-
1. Run the below command to check the gateway pod is running. Your pod name will be different.
47
+
- Run the container, using self-hosted gateway's image downloaded from the Microsoft Container Registry.
48
+
- Configure the container to expose HTTP (8080) and HTTPS (443) ports.
49
+
1. Run the following command to check that your gateway pod is running. This pod name is an example.
0 commit comments