Skip to content

Commit cbe4e08

Browse files
authored
Merge pull request #233184 from dlepow/corspp
[APIM] Clarify CORS policies
2 parents 515c340 + 988a8f6 commit cbe4e08

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

articles/api-management/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,10 @@
364364
items:
365365
- name: Export API as custom connector
366366
href: export-api-power-platform.md
367-
- name: Enable CORS to test custom connector
367+
displayName: Power Platform
368+
- name: Enable CORS for custom connector
368369
href: enable-cors-power-platform.md
370+
displayName: Power Platform
369371
- name: Monitor APIs
370372
items:
371373
- name: Get API analytics

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Enable CORS policies to test Azure API Management custom connector
3-
description: How to enable CORS policies in Azure API Management and Power Platform to test a custom connector from Power Platform applications.
2+
title: Enable CORS policies for Azure API Management custom connector
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.
44
services: api-management
55
author: dlepow
66

@@ -10,10 +10,10 @@ ms.date: 03/24/2023
1010
ms.author: danlep
1111

1212
---
13-
# Enable CORS policies to test custom connector from Power Platform
13+
# Enable CORS policies for API Management custom connector
1414
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.
1515

16-
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 the Power Apps or Power Automate test console 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:
16+
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:
1717

1818
* Add a CORS policy to your API
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You can manage your custom connector in your Power Apps or Power Platform enviro
5050
1. Select the pencil (Edit) icon to edit and test the custom connector.
5151

5252
> [!IMPORTANT]
53-
> To call the API from the Power Apps test console, you need to configure a CORS policy in your API Management instance and create a policy in the custom connector to set an Origin header in HTTP requests. For more information, see [Enable CORS policies to test custom connector from Power Platform](enable-cors-power-platform.md).
53+
> To call the API from the Power Apps test console, you need to configure a CORS policy in your API Management instance and create a policy in the custom connector to set an Origin header in HTTP requests. For more information, see [Enable CORS policies for custom connector](enable-cors-power-platform.md).
5454
>
5555
5656
## Update a custom connector

0 commit comments

Comments
 (0)