viz-rs / viz

Fast, flexible, lightweight web framework for Rust
https://viz.rs
MIT License
344 stars 20 forks source link

Made the CORS Config struct configurable #63

Closed m1212e closed 1 year ago

m1212e commented 1 year ago

The CORS Config struct could only be used in its default way since its fields were private. I tried to stick to the builder like pattern you used throughout the project and made the struct configurable. I also added some docs to demonstrate the usage.