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/energy-data-services/how-to-enable-cors.md
+20-17Lines changed: 20 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,29 @@ You can set CORS rules for each Azure Data Manager for Energy instance. When you
20
20
## Enabling CORS on Azure Data Manager for Energy instance
21
21
22
22
1. Create an **Azure Data Manager for Energy** instance.
23
-
2. Select the **Resource Sharing(CORS)** tab.
23
+
1. Select the **Resource Sharing(CORS)** tab.
24
24
[](media/how-to-enable-cors/enable-cors-1.png#lightbox)
25
25
26
-
3. In the Resource Sharing(CORS) tab, select **Allowed Origins**.
27
-
4. There can be upto 5 **Allowed Origins** added for a given instance.
26
+
1. In the Resource Sharing(CORS) tab, select **Allowed Origins**.
27
+
1. There can be upto 5 **Allowed Origins** added for a given instance.
28
28
[](media/how-to-enable-cors/enable-cors-2.png#lightbox)
29
-
5. If you explicitly want to have ***(Wildcard)**, then in the allowed origin * can be added.
30
-
6. If no setting is enabled on CORS page it's defaulted to Wildcard*, allow all.
31
-
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.
32
-
7. Next, select “**Review+Create**” after completing other tabs.
33
-
8. Select the "**Create**" button.
34
-
9. An **Azure Data Manager for Energy** instance is created with CORS policy.
35
-
10. Next, once the instance is created the CORS policy set can be viewed in instance **overview** page.
36
-
11. You can navigate to **Resource Sharing(CORS)** and see that CORS is enabled with required **Allowed Origins**.
37
-
[](media/how-to-enable-cors/enable-cors-3.png#lightbox)
29
+
1. If you explicitly want to have ***(Wildcard)**, then in the allowed origin * can be added.
30
+
1. If no setting is enabled on CORS page it's defaulted to Wildcard*, allow all.
31
+
1. 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.
32
+
1. Next, select “**Review+Create**” after completing other tabs.
33
+
1. Select the "**Create**" button.
34
+
1. An **Azure Data Manager for Energy** instance is created with CORS policy.
35
+
1. Next, once the instance is created the CORS policy set can be viewed in instance **overview** page.
36
+
1. You can navigate to **Resource Sharing(CORS)** and see that CORS is enabled with required **Allowed Origins**.
37
+
[](media/how-to-enable-cors/enable-cors-4.png#lightbox)
38
+
1. You can modify the Allowed Origins in CORS page at any time after Azure data manager for Energy instance is provisioned.
39
+
1. For adding a new origin type on the box below.
40
+
[](media/how-to-enable-cors/enable-cors-5.png#lightbox)
41
+
1. For deleting an existing allowed origin use the icon.
42
+
[](media/how-to-enable-cors/enable-cors-6.png#lightbox)
43
+
1. If * ( wildcard all) is added in any of the allowed origins then please ensure to delete all the other individual allowed origins.
44
+
1. Once the Allowed origin is added, the state of resource provisioning is in “Accepted” and during this time further modifications of CORS policy will not be possible. It takes 15 mins for CORS policies to be updated before update CORS window is available again for modifications.
45
+
[](media/how-to-enable-cors/enable-cors-7.png#lightbox)
38
46
39
47
## How are CORS rules evaluated?
40
48
CORS rules are evaluated as follows:
@@ -43,15 +51,10 @@ CORS rules are evaluated as follows:
43
51
44
52
## Limitations on CORS policy
45
53
The following limitations apply to CORS rules:
46
-
- You can specify up to five CORS rules per instance.
47
54
- The maximum size of all CORS rules settings on the request, excluding XML tags, shouldn't exceed 2 KiB.
48
55
- The length of allowed origin shouldn't exceed 256 characters.
49
56
50
-
51
57
## Next steps
52
-
- CORS policy once set up during provisioning can be modified only through a Support request
53
-
> [!div class="nextstepaction"]
54
-
> [Create an Azure support request](../azure-portal/supportability/how-to-create-azure-support-request.md)
0 commit comments