summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-26 17:34:52 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-26 17:41:57 -0700
commit0ae4c0db603b2eaa891eaae2d7714b1ce4390daf (patch)
treeaac3e8e98345a6079d1f4bea387baa9c19ce86e3 /src/lib.rs
parent992c0fb01ba693afd08dbf48eb52593cf58cf05c (diff)
downloades-public-proxy-0ae4c0db603b2eaa891eaae2d7714b1ce4390daf.tar.gz
es-public-proxy-0ae4c0db603b2eaa891eaae2d7714b1ce4390daf.zip
CORS headers
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b4c6d6a..75afbc5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -11,6 +11,7 @@ pub struct ProxyConfig {
pub bind_addr: Option<String>, // 127.0.0.1:9292
pub upstream_addr: Option<String>, // 127.0.0.1:9200
pub unsafe_all_indices: Option<bool>,
+ pub enable_cors: Option<bool>,
pub index: Vec<IndexConfig>,
}