Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚开始在 Apache Ni-Fi 中使用HandleHttpprocessor,试图弄清楚是否需要在 HandleHttpprocessor 中配置任何内容以支持Access-Control-Allow-Origin问题。
HandleHttpRequest处理器只能接受一个请求,它不会向客户端发送任何响应。因此,您需要将它与HandleHttpResponse处理器结合起来,以便将响应发送回客户端。
您可以通过向其添加自定义属性来在HandleHttpResponse处理器中设置自定义标头。为此,您可以通过单击“加号”符号添加动态属性,然后输入其名称,该名称将作为自定义 HTTP 标头的名称。
例如:访问控制允许来源:*