gateway跨域问题 Access-Control-Allow-Origin 默认设置星号,Access-Control-Allow-Credentials 设置 true会导致cookies认证无法传递 headers.add("Access-Control-Allow-Origin", ALLOWED_ORIGIN); headers.add("Access-Control-Expose-Headers", ALLOWED_EXPOSE); headers.add("Access-Control-Max-Age", MAX_AGE); headers.add("Access-Control-Allow-Credentials", "true");
扫一扫访问 Blade技术社区 移动端