|
|
@@ -96,7 +96,8 @@ public class CORSFilter implements Filter {
|
|
|
String serverDomain = extractBaseDomain(httpRequest.getRequestURL().toString());
|
|
|
|
|
|
// 有Origin头(可能是跨域)
|
|
|
- String currentDomain = httpRequest.getScheme() + "://" + httpRequest.getServerName();
|
|
|
+ //String currentDomain = httpRequest.getScheme() + "://" + httpRequest.getServerName();
|
|
|
+ String currentDomain = httpRequest.getServerName();
|
|
|
|
|
|
if (requestDomain.equals(currentDomain)) {
|
|
|
// 情况2:同源请求(协议+域名相同,端口不同也视为同源)
|