Spring Cloud 存取session 问题
使用spring cloud zuul后想要存取session,必须在yaml文件中添加下面配置
ensitiveHeaders: "*"
完整配置如下:
zuul:
host:
connect-timeout-millis: 6000
routes:
user-consumer:
path: /user-consumer/**
serviceId: user-consumer
sensitiveHeaders: "*"
goods-consumer:
path: /goods-consumer/**
serviceId: goods-consumer
sensitiveHeaders: "*"
add-host-header: true