지대한
3 years ago
1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@
|
||||
package com.palnet.board.config; |
||||
|
||||
import org.springframework.context.annotation.Configuration; |
||||
import org.springframework.web.servlet.config.annotation.CorsRegistry; |
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
||||
|
||||
@Configuration |
||||
public class WebConfig implements WebMvcConfigurer { |
||||
@Override |
||||
public void addCorsMappings(CorsRegistry registry) { |
||||
registry.addMapping("/**") |
||||
.allowedOrigins("*"); |
||||
} |
||||
} |
Loading…
Reference in new issue