接口 CorsProcessor

    • 方法详细资料

      • process

        boolean process​(@Nullable
                        CorsConfiguration configuration,
                        ServerWebExchange exchange)
        Process a request using the given CorsConfiguration.
        参数:
        configuration - the CORS configuration to use; possibly null in which case pre-flight requests are rejected, but all others allowed.
        exchange - the current exchange
        返回:
        false if the request was rejected, true otherwise