svenstaro / rust-web-boilerplate

Rust web template for modern web backend applications
MIT License
311 stars 51 forks source link

Implement cors_allow_origin header #41

Open boan-anbo opened 4 years ago

boan-anbo commented 4 years ago

I was wondering how to implement cors origins rules. Changing the string values in config.rs doesn't seem to do the trick. It's still blocking fetch requests from local addresses. A small example would do. Thanks!