refactor(biji-houdaun): 调整端口并优化健康检查和跨域配置- 将应用端口从8083 改为8084
- 更新健康检查 URL 以匹配新端口 - 在 pom.xml 中指定镜像名称 - 修改跨域配置,使用 allowedOriginPatterns 允许所有来源
This commit is contained in:
@@ -11,7 +11,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||
@Override
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
registry.addMapping("/**")
|
||||
.allowedOrigins("http://localhost:5173") // 明确指定前端来源
|
||||
.allowedOriginPatterns("*") // 使用allowedOriginPatterns
|
||||
.allowedMethods("*")
|
||||
.allowedHeaders("*")
|
||||
.allowCredentials(true) // 允许凭证
|
||||
|
||||
Reference in New Issue
Block a user