3 changed files with 26 additions and 3732 deletions
@ -0,0 +1,17 @@ |
|||||
|
package com.userinformation.backend.config; |
||||
|
|
||||
|
import org.springframework.context.annotation.Configuration; |
||||
|
import org.springframework.web.servlet.config.annotation.CorsRegistry; |
||||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
||||
|
|
||||
|
@Configuration |
||||
|
public class CorsConfig implements WebMvcConfigurer { |
||||
|
@Override |
||||
|
public void addCorsMappings(CorsRegistry registry) { |
||||
|
WebMvcConfigurer.super.addCorsMappings(registry); |
||||
|
registry.addMapping("/**") |
||||
|
.allowedHeaders("*") |
||||
|
.allowedOrigins("*") |
||||
|
.allowedMethods("POST", "GET", "OPTIONS"); |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
Loading…
Reference in new issue