WhyI am Getting 403 Forbidden error for actuator /refresh endpoint on Spring Boot 2 on Cloud Foundry{using Cloud Config Server service}

I got the solution, I needed to add a security configuration, for example:

public class SecurityConfiguration extends WebSecurityConfigurerAdapter{

    protected void configure(HttpSecurity http) throws Exception {

Additionally, I had to add the following dependency:


I found this solution within the following GitHub issue: https://github.com/spring-cloud/spring-cloud-config/issues/950