- The previous config was creating the `corsConfigurationSource()` bean, but also trying to set it in the cors() configuration. - This resulted in calling `corsConfigurationSource()` as a method on the it object, but it needed to either: > - Use the bean directly, or > - Configure CORS inline without a separate bean
corsConfigurationSource()bean, but also trying to set it in the cors() configuration.corsConfigurationSource()as a method on the it object, but it needed to either: