Help Center/ Cloud Search Service/ Troubleshooting/ Clusters/ A Cross-Domain Error Is Returned When I Try to Connect to an Elasticsearch Cluster via the es-head Plugin
Updated on 2025-10-11 GMT+08:00

A Cross-Domain Error Is Returned When I Try to Connect to an Elasticsearch Cluster via the es-head Plugin

Solution

  1. Check whether the network is connected on the ECS where the es-head plugin is installed.
  2. After the network is connected, Log in to the CSS management console.
  3. In the navigation pane on the left, choose Clusters > Elasticsearch.
  4. In the cluster list, click the name of the target cluster. The cluster information page is displayed.
  5. Choose Cluster Settings > Parameter Settings.
  6. Click Edit and change the value of http.cors.allow-origin under Cross-domain Access to "*". Note that the double quotation marks are part of the parameter value.
  7. After the change is complete, click Submit.In the displayed dialog box, confirm the settings, select the box indicating "I understand that the modification will take effect after the cluster is restarted." and click Yes.

    If the Status is Succeeded in the parameter change list, the change has been saved.

  8. Click Restart in the upper right corner to restart the cluster, thus making the change take effect.