使用Zuul网关过滤入站请求

问题描述

我有一个使用Zuul的网关服务。我只允许通过此网关来自特定host/origin/url的入站请求。我可以在网关服务的yaml文件(特别是 zuul 字段下)中设置一个属性来完成此操作吗?我的网关服务yaml看起来像这样:

description: the gateway service of the year
version: 1.0.0

server:
  port: 5555

spring:
  application:
    name: gateway-srv
  main:
    allow-bean-definition-overriding: true

homeUrl: http://localhost:8080  
    
zuul:
  routes:
    foo:
      authorization:
        password: baz
        username: bar
      path: /foo/**
      sensitiveHeaders: Cookie,Set-Cookie
      url: ${homeUrl}/lc

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)