svenstaro / rust-web-boilerplate

Rust web template for modern web backend applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement cors_allow_origin header

boan-anbo opened this issue · comments

commented

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!