Member-only story

Web Application

Handle CORS issue in Spring Boot application

in order to stop browser from blocking API request.

Donald Le

--

  • Global configuration

Disable cors and csrf, along with setting allowedHeaders for CORSConfiguration

  • Controller configuration

Need to annotate CrossOrigin for Controller class and for each API definition

Hope it helps~~

Enjoy coding~~

--

--

No responses yet