gpt4 book ai didi

elasticsearch - ElasticSearch Dejavu Chrome扩展程序:编辑值时出现403禁止错误

转载 作者:行者123 更新时间:2023-12-03 01:33:02 24 4
gpt4 key购买 nike

我使用ElasticSearch 6.5.4和Dejavu v.3 Chrome扩展程序。我将以下CORS配置添加到elasticsearch.yml:

http.port: 9200
http.cors.allow-origin: "chrome-extension://XXXXXXX"
http.cors.enabled: true
http.cors.allow-headers : "X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
http.cors.allow-credentials: true

在Dejavu中更新列值时,我在Chrome的控制台中收到 403 Forbidden错误。在Dejavu屏幕上,它表明这是JSON错误。

最佳答案

http.cors.allow-origin的值更改为"*"。这样就解决了这个问题。

关于elasticsearch - ElasticSearch Dejavu Chrome扩展程序:编辑值时出现403禁止错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54590128/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com