File tree 1 file changed +7
-0
lines changed
src/main/java/com/example/busan/common/config
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
import com .example .busan .auth .AuthorizationArgumentResolver ;
4
4
import org .springframework .context .annotation .Configuration ;
5
5
import org .springframework .web .method .support .HandlerMethodArgumentResolver ;
6
+ import org .springframework .web .servlet .config .annotation .CorsRegistry ;
6
7
import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
7
8
8
9
import java .util .List ;
@@ -20,4 +21,10 @@ public WebConfigurer(final AuthorizationArgumentResolver resolver) {
20
21
public void addArgumentResolvers (final List <HandlerMethodArgumentResolver > resolvers ) {
21
22
resolvers .add (resolver );
22
23
}
24
+
25
+ @ Override
26
+ public void addCorsMappings (final CorsRegistry registry ) {
27
+ registry .addMapping ("/**" )
28
+ .allowedMethods ("*" );
29
+ }
23
30
}
You can’t perform that action at this time.
0 commit comments