♻️ Refactoring code. 避免 cors 失效
This commit is contained in:
1 parent
7867476745
commit
fc49d5c488
1 file changed
+1
-1
@@ -60,7 +60,7 @@ public class ConsoleConfig {
|
||||
public CorsFilter corsFilter() {
|
||||
CorsConfiguration config = new CorsConfiguration();
|
||||
config.setAllowCredentials(true);
|
||||
config.addAllowedOrigin("*");
|
||||
config.addAllowedOriginPattern("*");
|
||||
config.addAllowedHeader("*");
|
||||
config.setMaxAge(18000L);
|
||||
config.addAllowedMethod("*");
|
||||
|
||||
Reference in new issue
Block a user