在config/elasticsearch.yml配置文件最後添加:bash
http.cors.enabled: true http.cors.allow-origin: /http?:\/\/192.168.3.74(:[0-9]+)?/複製代碼