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

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()
           
        }
    }
Greeshma