we are trying to access elastic search from a webpage, we are getting this error. i have made changes in apm-server.yml for APM cluster under "User Settings Override" section from elastic console
is there a document which explains yml format to add CORS. appreciate it.
Access to XMLHttpRequest at 'https://32a7aecefc1c45628475e23728927ba9.us-central1.gcp.cloud.es.io:9243/items/item' from origin 'https://mydomainname.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
searchItem @ search.html:63
(anonymous) @ search.html:78
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2