CORS error rest endpoint

Hai guys . i calling opensearch rest endpoints in my spa app.but showing cors error

image

i followed this cors instruction

cors conf

i added this in opensearch.yml file in /etc/opensearch/opensearch.yml
but its not working

they mention add this in custom-opensearch.yml file.i dont know where it is.any one guide me please

please help me guys

Hi @Arun, how did you deploy/install your OpenSearch cluster?

Best,
mj