hyperlane-plugin-cors 23.1.0

A zero-allocation precompiled CORS plugin for the Hyperlane framework with exact/suffix/predicate origin matching, safe credential reflection, RFC preflight handling, and Vary header merging.
Documentation

hyperlane-plugin-cors

RFC-Compliant CORS Middleware Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Opt-in Cross-Origin Resource Sharing hook handling preflight OPTIONS, origin allowlists, credentials, exposed headers, and max-age policies.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • struct / enum / impl — Origin/method/header policy builders and preflight short-circuit hook

Installation

cargo add hyperlane-plugin-cors

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-cors --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-cors --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.