Example usage for org.springframework.web.reactive.config CorsRegistry addMapping

List of usage examples for org.springframework.web.reactive.config CorsRegistry addMapping

Introduction

In this page you can find the example usage for org.springframework.web.reactive.config CorsRegistry addMapping.

Prototype

public CorsRegistration addMapping(String pathPattern) 

Source Link

Document

Enable cross origin request handling for the specified path pattern.

Usage

From source file:top.zhacker.ms.reactor.webflux.Application.java

@Override
public void addCorsMappings(CorsRegistry registry) {
    registry.addMapping("/cors/config");
}