Closed tpmccallum closed 5 months ago
I am using spin-contrib-http = "0.0.7"
and the example's Cargo.toml is using spin-contrib-http = "0.0.5"
- I will downgrade for the time being.
@tpmccallum good catch. I've updated the sample to latest 0.0.8
(which I released earlier today).
I also updated the docs for this sample to illustrate how one could set allowed CORS origins using the Environment Variable Provider.
Hi Thanks for this repo. Really useful I am compiling a Rust application that uses CORS.
I am getting the following error when using the
build_with_cors
function:It seems to want 3 arguments:
Ref: https://github.com/fermyon/enterprise-architectures-and-patterns/blob/main/cors-rust/src/lib.rs#L57