From de08d4876092d361009aa467ef4d2a77068fbcaa Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期五, 26 十二月 2025 14:08:31 +0800
Subject: [PATCH] 一键入库相同订单序号,不同流程卡被过滤。无法入库问题
---
north-glass-erp/src/main/java/com/example/erp/config/MyCorsConfig.java | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/config/MyCorsConfig.java b/north-glass-erp/src/main/java/com/example/erp/config/MyCorsConfig.java
new file mode 100644
index 0000000..f037741
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/config/MyCorsConfig.java
@@ -0,0 +1,20 @@
+package com.example.erp.config;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.CorsRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+@Configuration(proxyBeanMethods = false)
+public class MyCorsConfig {
+ @Bean
+ public WebMvcConfigurer corsConfigurer() {
+ return new WebMvcConfigurer() {
+ @Override
+ public void addCorsMappings(CorsRegistry registry) {
+ registry.addMapping("/**");
+ }
+ };
+ }
+
+
+}
\ No newline at end of file
--
Gitblit v1.8.0