From e5cb74a540c6c9ef73c1eda68be83b6771db82cf Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Fri, 25 Jun 2021 11:07:37 +0800 Subject: [PATCH] cors --- .../com/anjiplus/template/gaea/business/filter/CORSFilter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java index a1618e01..e5eea41f 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java @@ -1,5 +1,7 @@ package com.anjiplus.template.gaea.business.filter; +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; import javax.servlet.*; @@ -11,6 +13,7 @@ import java.io.IOException; * Created by raodeming on 2021/6/24. */ @Component +@Order(Ordered.HIGHEST_PRECEDENCE) public class CORSFilter implements Filter { @Override