I'm trying to create an Angular 7 web app where I can add PDF contents directly into a Elasticsearch service. I created the file uploader in the app and I started a FSCrawler REST client to send the file requests. But when I try it, the web browser pops out this in console:
"Access to XMLHttpRequest at 'http://127.0.0.1:8080/fscrawler' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
I tried previously to make some opps directly on the Elasticsearch client (creating an index e.g) and I enabled the CORS in my Elasticsearch so it worked. But even with that done, this FSCrawler request doesn't work.
Anyone can help me please? thx