CORS issue when accessing REST Javascript API

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

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