Skip to content

Commit 8303b60

Browse files
committed
cors
1 parent 48c590c commit 8303b60

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

articles/api-management/developer-portal-wordpress-plugin.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: dlepow
66
ms.service: api-management
77
ms.custom:
88
ms.topic: how-to
9-
ms.date: 07/17/2024
9+
ms.date: 07/18/2024
1010
ms.author: danlep
1111
---
1212

@@ -129,6 +129,21 @@ Update the settings of the developer portal in the API Management instance to en
129129
1. On the **Self-hosted portal configuration** tab, enter the hostname of your WordPress on App Service site as a portal origin, substituting the name of your app service in the following URL: `https://<yourapp-service-name>.azurewebsites.net`
130130
1. [Republish the developer portal](developer-portal-overview.md#publish-the-portal) to apply the changes.
131131

132+
Also, update the `cors` policy configuration in the API Management instance to add the app service site as an allowed origin. This value is needed to allow calls from the developer portal's test console on the WordPress site.
133+
134+
Add the following `origin` value in your `cors` policy configuration:
135+
136+
```xml
137+
<cors ...>
138+
<allowed-origins>
139+
[...]
140+
<origin>https://<yourapp-service-name>.azurewebsites.net</origin>
141+
</allowed-origins>
142+
</cors>
143+
```
144+
145+
Learn more about how to [set or edit policies](set-edit-policies.md).
146+
132147
## Step 6: Navigate to WordPress admin site and upload the customized theme
133148

134149
In this step, you upload the customized theme for the API Management developer portal to the WordPress admin site.

0 commit comments

Comments
 (0)