skip to Main Content

XMLHttpRequest blocked by CORS policy annotation @CrossOrigin – Nginx

Access to XMLHttpRequest at 'http://localhost:8080/api/auth/signup' from origin 'https://mysuite.ru' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request. http.cors().and() .exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() .authorizeRequests() .antMatchers("/admin").hasRole("ADMIN") .antMatchers("/").permitAll() .antMatchers("/favicon.ico").permitAll() .antMatchers("/static/**").permitAll() .antMatchers("/manifest.json").permitAll()…

VIEW QUESTION

Serve Base64 GIF in Nginx

Is it possible to serve a base64 image (GIF) in Nginx that will load in the browser? The encoded string below is a 1x1 white pixel GIF. I tried this, which isn't working location /img.gif { default_type "image/gif;base64"; return 200…

VIEW QUESTION
Back To Top
Search