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 '' from origin '' 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.