reactivesearch-proxy-server | A middleware to demonstrate how to secure your ES cluster | Runtime Evironment library
kandi X-RAY | reactivesearch-proxy-server Summary
kandi X-RAY | reactivesearch-proxy-server Summary
A middleware to demonstrate how to secure your ES cluster with reactivesearch
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of reactivesearch-proxy-server
reactivesearch-proxy-server Key Features
reactivesearch-proxy-server Examples and Code Snippets
Community Discussions
Trending Discussions on reactivesearch-proxy-server
QUESTION
I plan on using AWS ES service to host my Elasticsearch. I setup a proxy as described here like so in Express server.
...ANSWER
Answered 2019-Nov-14 at 12:47Seems like in ES cors config you are using https
with localhost, which might be creating error
http.cors.allow-origin: /https?://(localhost)?(127.0.0.1)?(:[0-9]+)?/
Also in your cors configuration for express app,
Is localhost:3000
for frontend?
If so, you are whitelisting frontend which might not be the case.
You can simply use app.use(cors())
before any route is declared and then use proxy for your search route as mentioned here, with a minor change,
app.use('/search', proxy(options));
https://github.com/appbaseio-apps/reactivesearch-proxy-server/blob/master/index.js#L46
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install reactivesearch-proxy-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page