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?
Data Import Error
Joseph
#3
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
arturo
#4
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: “*”