public class CrossInterceptor extends AbstractCross<CrossInterceptor> implements org.noear.solon.core.route.RouterInterceptor
allowCredentials, allowedHeaders, allowedMethods, allowedOrigins, exposedHeaders, maxAge| Constructor and Description |
|---|
CrossInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
doIntercept(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.handle.Handler mainHandler,
org.noear.solon.core.route.RouterInterceptorChain chain) |
org.noear.solon.core.route.PathRule |
pathPatterns() |
CrossInterceptor |
pathPatterns(String... patterns)
设置路径匹配模式
|
allowCredentials, allowedHeaders, allowedMethods, allowedOrigins, doHandle, exposedHeaders, maxAgepublic CrossInterceptor pathPatterns(String... patterns)
public org.noear.solon.core.route.PathRule pathPatterns()
pathPatterns in interface org.noear.solon.core.route.RouterInterceptorpublic void doIntercept(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.handle.Handler mainHandler,
org.noear.solon.core.route.RouterInterceptorChain chain)
throws Throwable
doIntercept in interface org.noear.solon.core.route.RouterInterceptorThrowableCopyright © 2025. All rights reserved.