我正在从我的Angular2站点查询一些elasticsearch服务器。为了提高安全性,我们希望将访问权限锁定为仅GET请求。Elasticsearch支持GET with a body,但是我在使用Angular2的http类时遇到了麻烦。this.http.post(SearchEndpoint, q.BuildPayload(), { method: 'GET' })
因
我尝试了所有的方法,但是我不能得到一个http请求到我在heroku上的节点服务器。我可以手动命中路由,所以它不是服务器。我将粘贴我的服务和页面。**类为subscription.service.tsimport {Injectable} from '@angular;
constructor(http:Htt