Uses of Interface
com.soklet.McpCorsAuthorizer
Packages that use McpCorsAuthorizer
-
Uses of McpCorsAuthorizer in com.soklet
Methods in com.soklet that return McpCorsAuthorizerModifier and TypeMethodDescriptionstatic @NonNull McpCorsAuthorizerMcpCorsAuthorizer.acceptAllInstance()Acquires an authorizer that allows all browser origins and always enables credentials.static @NonNull McpCorsAuthorizerMcpCorsAuthorizer.fromOriginAuthorizer(@NonNull Predicate<@NonNull McpCorsContext> originAuthorizer) Acquires an authorizer backed by an origin-authorization predicate and with credentials disabled by default.static @NonNull McpCorsAuthorizerMcpCorsAuthorizer.fromOriginAuthorizer(@NonNull Predicate<@NonNull McpCorsContext> originAuthorizer, @NonNull Function<String, Boolean> allowCredentialsResolver) Acquires an authorizer backed by an origin-authorization predicate plus a credentials resolver.static @NonNull McpCorsAuthorizerMcpCorsAuthorizer.fromWhitelistedOrigins(@NonNull Set<@NonNull String> whitelistedOrigins) Acquires an authorizer that allows only the provided normalized origins and disables credentials by default.static @NonNull McpCorsAuthorizerMcpCorsAuthorizer.fromWhitelistedOrigins(@NonNull Set<@NonNull String> whitelistedOrigins, @NonNull Function<String, Boolean> allowCredentialsResolver) Acquires an authorizer that allows only the provided normalized origins and delegates credential behavior per origin.McpServer.getCorsAuthorizer()Provides the MCP CORS authorizer.static @NonNull McpCorsAuthorizerMcpCorsAuthorizer.nonBrowserClientsOnlyInstance()Acquires the conservative default authorizer that leaves non-browser MCP requests alone while rejecting browser CORS authorization.static @NonNull McpCorsAuthorizerMcpCorsAuthorizer.rejectAllInstance()Acquires an authorizer that rejects all browser-originated MCP CORS requests.Methods in com.soklet with parameters of type McpCorsAuthorizerModifier and TypeMethodDescriptionMcpServer.Builder.corsAuthorizer(@Nullable McpCorsAuthorizer corsAuthorizer) Sets the MCP CORS authorizer.