Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Srdjan Dejanovic

iI also had this same issue.I I resolved it by removing 'no-cors' from javascript and adding the following in server side spring boot. public class WebSecurityConfig extends WebSecurityConfigurerAdapter { protected void configure(HttpSecurity httpSecurity) throws Exception {

public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
        protected void configure(HttpSecurity httpSecurity) throws Exception {
             .antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
           
        }
    }

}

}

i also had this same issue.I resolved it by removing 'no-cors' from javascript and adding the following in server side spring boot. public class WebSecurityConfig extends WebSecurityConfigurerAdapter { protected void configure(HttpSecurity httpSecurity) throws Exception {

        .antMatchers(HttpMethod.OPTIONS, "/**").permitAll()

}

}

I also had this same issue. I resolved it by removing 'no-cors' from javascript and adding the following in server side spring boot.

public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
        protected void configure(HttpSecurity httpSecurity) throws Exception {
             .antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
           
        }
    }
Source Link
Greeshma

i also had this same issue.I resolved it by removing 'no-cors' from javascript and adding the following in server side spring boot. public class WebSecurityConfig extends WebSecurityConfigurerAdapter { protected void configure(HttpSecurity httpSecurity) throws Exception {

        .antMatchers(HttpMethod.OPTIONS, "/**").permitAll()

}

}

lang-js