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