Commit 92c0c6cc by tyfanchz

修改:产品类型列表获取

1 parent 93185c90
...@@ -34,7 +34,10 @@ public class CorsFilter implements Filter { ...@@ -34,7 +34,10 @@ public class CorsFilter implements Filter {
headersSb.append(headerNames.nextElement()).append(", "); headersSb.append(headerNames.nextElement()).append(", ");
} }
if (!headersSb.toString().toLowerCase().contains("authorization")) { if (!headersSb.toString().toLowerCase().contains("authorization")) {
headersSb.append("authorization"); headersSb.append("authorization").append(", ");
}
if (!headersSb.toString().toLowerCase().contains("content-type")) {
headersSb.append("Content-Type").append(", ");
} }
httpResponse.addHeader(HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS, httpResponse.addHeader(HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS,
headersSb.toString().replaceAll(", +$", "")); headersSb.toString().replaceAll(", +$", ""));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!