Data Import Error


Hi, I installed elasticsearch locally and I am planning to upload csv files using Studio. I created my provider and I enabled the file uploads option. However, I am getting an error when creating the provider. Any ideas?


Hi @Joseph, could you send the error you are getting or a screenshot?


Hi @arturo I see this problem in the console:

XMLHttpRequest at ‘http://localhost:9200/’ from origin ‘[http://localhost:3333](http://localhost:3333/)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource


Hi @Joseph, that explains it. The issue is the CORS policy in the elasticsearch.yml configuration file. You can find a description here with the steps to install and use elasticsearch locally. You just need to configure your local elasticsearch.yml with this code.
http.cors.enabled: true http.cors.allow-origin: “*”


Hi @arturo, I finally configured my elasticsearch.yml file after reading the link you share and the file uploads are working great!