File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
jaksim/src/main/java/org/sopt/jaksim/auth Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,14 @@ public void addCorsMappings(CorsRegistry registry) {
27
27
public FilterRegistrationBean <CorsFilter > corsFilterRegistrationBean () {
28
28
29
29
CorsConfiguration config = new CorsConfiguration ();
30
- config .setAllowCredentials (false );
30
+ config .setAllowCredentials (true );
31
31
config .addAllowedOrigin ("*" );
32
32
config .addAllowedHeader ("*" );
33
33
config .addAllowedMethod (HttpMethod .GET );
34
34
config .addAllowedMethod (HttpMethod .POST );
35
+ config .addAllowedMethod (HttpMethod .PATCH );
36
+ config .addAllowedMethod (HttpMethod .PUT );
37
+ config .addAllowedMethod (HttpMethod .OPTIONS );
35
38
config .setMaxAge (6000L );
36
39
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource ();
37
40
source .registerCorsConfiguration ("/**" , config );
You can’t perform that action at this time.
0 commit comments