vow-cors
vow-cors configures CORS options, detects OPTIONS preflight, and sets Access-Control-Allow-Origin headers. Install with vpm:
curl -fsSL https://install.vowlang.dev | shexport PATH="$HOME/.local/bin:$PATH"vpm add vow-cors vow-web-servervpm installQuick start
Section titled “Quick start”import vc from vow_cors
fn main(caps: Caps) -> int { let opts = vc.defaults("https://app.example.com"); print vc.allow_origin(opts); return 0;}Run tests
Section titled “Run tests”cd vow-libs/vow-cors && vow test tests/cors.vow