In your security filter chain, disable the cors configuration. Here is the line of code:
.cors(cors-> cors.disable())
instead of using corsConfigurationSource() use the above code line(this code line should inside in security filter chain).