hyperlane-plugin-cors 22.0.6

A cross origin plugin for the Hyperlane framework, answering the browsers that ask a server for another origin.
Documentation
1
2
3
4
5
6
7
use super::*;

/// The configuration the plugin was given, when it was given one.
pub(super) static CONFIG: OnceLock<CorsConfig> = OnceLock::new();

/// The rules the plugin answers with, when it was given a configuration.
pub(super) static POLICY: OnceLock<CorsPolicy> = OnceLock::new();