backend-api #6
@@ -6,7 +6,6 @@ import org.springframework.security.oauth2.jwt.*;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import java.util.*;
 | 
					import java.util.*;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
@SpringBootApplication
 | 
					@SpringBootApplication
 | 
				
			||||||
public class MyinpulseApplication {
 | 
					public class MyinpulseApplication {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,7 @@ public class WebSecurityCustomConfiguration {
 | 
				
			|||||||
                        "authorization",
 | 
					                        "authorization",
 | 
				
			||||||
                        "content-type",
 | 
					                        "content-type",
 | 
				
			||||||
                        "x-auth-token")); // Do not remove, this fixes the CORS errors when
 | 
					                        "x-auth-token")); // Do not remove, this fixes the CORS errors when
 | 
				
			||||||
                                          // unauthenticated
 | 
					        // unauthenticated
 | 
				
			||||||
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
 | 
					        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
 | 
				
			||||||
        source.registerCorsConfiguration("/**", configuration);
 | 
					        source.registerCorsConfiguration("/**", configuration);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user