use of cn.taketoday.web.registry.HandlerCorsCustomizer in project today-framework by TAKETODAY.
the class CrossOriginConfiguration method handlerCorsCustomizer.
@MissingBean
public HandlerCorsCustomizer handlerCorsCustomizer(CorsProcessor corsProcessor, ApplicationContext context) {
HandlerCorsCustomizer customizer = new HandlerCorsCustomizer(corsProcessor);
ExpressionEvaluator expressionEvaluator = context.getExpressionEvaluator();
customizer.setExpressionEvaluator(expressionEvaluator);
return customizer;
}
Aggregations