UNPKG

node-web-mvc

Version:
12 lines (11 loc) 572 B
import HttpServletRequest from '../http/HttpServletRequest'; import PathMatcher from '../util/PathMatcher'; import CorsConfiguration from './CorsConfiguration'; import CorsConfigurationSource from './CorsConfigurationSource'; export default class UrlBasedCorsConfigurationSource extends CorsConfigurationSource { private pathMatcher; private corsConfigurations; getCorsConfiguration(request: HttpServletRequest): CorsConfiguration; setCorsConfigurations(config: Map<string, CorsConfiguration>): void; setPatchMatcher(pathMatcher: PathMatcher): void; }