Skip to content

Commit b6a0f94

Browse files
Update how-to-enable-cors.md
1 parent 6ae47f5 commit b6a0f94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/energy-data-services/how-to-enable-cors.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ms.date: 02/28/2023 #Required; mm/dd/yyyy format.
99
ms.custom: template-how-to-pattern #Required; leave this attribute/value as-is.
1010
---
1111
# Use CORS for resource sharing in Azure Data Manager for Energy Preview
12+
This document is to help you as user of Azure Data Manager for Energy preview to set up CORS policies.
1213

1314
## What is CORS?
1415

@@ -20,11 +21,11 @@ You can set CORS rules for each Azure Data Manager for Energy Preview instance.
2021

2122
1. Create an **Azure Data Manager for Energy Preview** instance.
2223
2. Select the **Resource Sharing(CORS)** tab.
23-
[![Screenshot of Resource Sharing(CORS) tab while creating Microsoft Energy Data Services](media/how-to-enable-cors/enable-cors-1.png)](media/how-to-enable-cors/enable-cors-1.png#lightbox)
24+
[![Screenshot of Resource Sharing(CORS) tab while creating Microsoft Energy Data Services.](media/how-to-enable-cors/enable-cors-1.png)](media/how-to-enable-cors/enable-cors-1.png#lightbox)
2425

2526
3. In the Resource Sharing(CORS) tab, select **Allowed Origins**.
2627
4. There can be upto 5 **Allowed Origins** added for a given instance.
27-
[![Screenshot of 1 allowed origin selected](media/how-to-enable-cors/enable-cors-2.png)](media/how-to-enable-cors/enable-cors-2.png#lightbox)
28+
[![Screenshot of 1 allowed origin selected.](media/how-to-enable-cors/enable-cors-2.png)](media/how-to-enable-cors/enable-cors-2.png#lightbox)
2829
5. If you explicitly want to have ***(Wildcard)**, then in the allowed origin * can be added.
2930
6. If no setting is enabled on CORS page it's defaulted to Wildcard*, allow all.
3031
7. The other values of CORS policy like **Allowed Methods**, **Allowed Headers**, **Exposed Headers**, **Max age in seconds** are set with default values displayed on the screen.
@@ -33,13 +34,12 @@ You can set CORS rules for each Azure Data Manager for Energy Preview instance.
3334
9. An **Azure Data Manager for Energy Preview** instance is created with CORS policy.
3435
10. Next, once the instance is created the CORS policy set can be viewed in instance **overview** page.
3536
11. You can navigate to **Resource Sharing(CORS)** and see that CORS is enabled with required **Allowed Origins**.
36-
37-
[![Screenshot of viewing the CORS policy set out](media/how-to-enable-cors/enable-cors-3.png)](media/how-to-enable-cors/enable-cors-3.png#lightbox)
37+
[![Screenshot of viewing the CORS policy set out.](media/how-to-enable-cors/enable-cors-3.png)](media/how-to-enable-cors/enable-cors-3.png#lightbox)
3838

3939
## How are CORS rules evaluated?
4040
CORS rules are evaluated as follows:
41-
- First, the origin domain of the request is checked against the domains listed for the AllowedOrigins element.
42-
- If the origin domain is included in the list, or all domains are allowed with the wildcard character '*', then rules evaluation proceeds. If the origin domain isn't included, then the request fails.
41+
1. First, the origin domain of the request is checked against the domains listed for the AllowedOrigins element.
42+
2. If the origin domain is included in the list, or all domains are allowed with the wildcard character '*', then rules evaluation proceeds. If the origin domain isn't included, then the request fails.
4343

4444
## Limitations on CORS policy
4545
The following limitations apply to CORS rules:

0 commit comments

Comments
 (0)