Enable CORS policy on FSCrawler REST Client

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 '' 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

I don't think I can add more than what I wrote on the original issue. Something needs to be done on FSCrawler side but it's not implemented yet.

Maybe something like adding CORS headers inside the REST API FSCrawler Java classes could solve the problem?

Yes. Maybe.

PR are warmly welcomed. :wink:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.