我正在尝试按照https://github.com/pueteam/datasource-plugin-solr中提到的文档将Solr数据源集成到Grafana 。
配置数据源时,可以在Grafana UI上看到Solr插件作为一个选项。但是,当我单击“保存并测试”按钮时,由于数据源已更新,因此测试连接失败。在浏览器控制台中会看到以下日志:
浏览器日志:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8983 (Reason: CORS header 'Access-Control-Allow-Origin' missing)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8983 (Reason: CORS request did not succeed)
进一步更新到日志
我尝试了此处提到的有关将security.fileuri.strict_origin_policy
参数更新为false的步骤。但这也无济于事。
任何帮助都会很棒。
谢谢。
从Chrome运行时,仅包含了chrome商店中的Allow-Control-Allow-Origin *插件,一切正常!对于FireFox,添加了AddOn CORS Everywhere插件,它再次起作用!
该问题似乎与浏览器有关。特别是在离线模式下工作时。由于firefox浏览器错误,无法将FireFox插件作为.xpi文件添加为附件"Add cannot be installed because the plugin is not trusted and unsigned"
。
PS Firefox错误地(或出于商业目的)假设人们会在他们所需要的浏览器中安装插件。在许多情况下并非如此。我可能需要一个插件来下载并安装在脱机dekstop上运行的浏览器上。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句