@@ -0,0 +1,16 @@
|
|||||||
|
package dev.mars3142.fhq.config;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.web.reactive.config.CorsRegistry;
|
||||||
|
import org.springframework.web.reactive.config.EnableWebFlux;
|
||||||
|
import org.springframework.web.reactive.config.WebFluxConfigurer;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
@EnableWebFlux
|
||||||
|
public class CorsGlobalConfiguration implements WebFluxConfigurer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addCorsMappings(CorsRegistry corsRegistry) {
|
||||||
|
corsRegistry.addMapping("/**");
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user