Apache nifi 否';访问控制允许原点';请求的资源ListenHTTP处理器上存在标头

Apache nifi 否';访问控制允许原点';请求的资源ListenHTTP处理器上存在标头,apache-nifi,Apache Nifi,我有一个Nifi集群,其流从listenHTTP处理器开始。基本上,流使用JSON负载接收POST调用。它适用于邮递员请求或curl调用。但当请求来自web浏览器时,选项请求将失败,并出现以下错误: Access to fetch at 'https://{server_endpoint}/process' from origin 'https://{client_endpoint}:3443' has been blocked by CORS policy: Response to pre

我有一个Nifi集群,其流从listenHTTP处理器开始。基本上,流使用JSON负载接收POST调用。它适用于邮递员请求或curl调用。但当请求来自web浏览器时,选项请求将失败,并出现以下错误:

Access to fetch at 'https://{server_endpoint}/process' from 
origin 'https://{client_endpoint}:3443' has been blocked by CORS 
policy: Response to preflight request doesn't pass access control 
check: No 'Access-Control-Allow-Origin' header is present on the 
requested resource. If an opaque response serves your needs, 
set the request's mode to 'no-cors' to fetch the resource 
with CORS disabled.

我们应该如何在ListenHTTP处理器中配置cors。

ListenHTTP
不支持cors。您唯一的选择是使用代理服务器,该服务器将是向NiFi集群发送浏览器请求的服务器