Commit eac0a7ba authored by 超管PCQ's avatar 超管PCQ

Update CorsConfig.java,修改方式

parent 9a86e1aa
......@@ -11,7 +11,7 @@ public class CorsConfig extends WebMvcConfigurerAdapter {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowCredentials(true)
.allowCredentials(false)
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.maxAge(3600);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment